diff --git a/src/components/queryBuilder/BuilderHost.vue b/src/components/queryBuilder/BuilderHost.vue
index 10bc610..baa4d91 100644
--- a/src/components/queryBuilder/BuilderHost.vue
+++ b/src/components/queryBuilder/BuilderHost.vue
@@ -57,7 +57,7 @@
@@ -65,7 +65,7 @@
@@ -136,10 +136,16 @@ export default defineComponent({
} else {
this.value = "";
}
+ this.activeQueryId = undefined;
},
activeQueryId() {
let query = this.queries.find((t) => t.id == this.activeQueryId)?.query;
if (query != undefined) {
+ if (typeof query == "string") {
+ this.queryMode = "editor";
+ } else {
+ this.queryMode = "builder";
+ }
this.value = query;
}
},