* Fix Save button disabled until clause is switched * Fix 'undefined undefined' when sql query is empty * fix test Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>