From 3c114d87c70395183fc4c7ff2810fe5b3a3cdf8e Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 14 Dec 2021 11:30:50 +0000 Subject: [PATCH] Fixing issue with creating new rest query. --- .../[selectedDatasource]/rest/[query]/index.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte index 838646d806..a9d70c8b9e 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte @@ -65,7 +65,11 @@ $queries.list.find(q => q._id === $queries.selected) || { datasourceId: $params.selectedDatasource, parameters: [], - fields: {}, + fields: { + // only init the objects, everything else is optional strings + disabledHeaders: {}, + headers: {}, + }, queryVerb: "read", } )