From 65abd637441c6efddbbdd6664a9a864d6fa5408a Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 8 Jun 2021 17:14:46 +0100 Subject: [PATCH] lint --- .../src/components/integration/QueryViewer.svelte | 10 +++------- .../standard-components/src/forms/BooleanField.svelte | 2 -- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/builder/src/components/integration/QueryViewer.svelte b/packages/builder/src/components/integration/QueryViewer.svelte index 78c5a7fa9a..411ae2bcb5 100644 --- a/packages/builder/src/components/integration/QueryViewer.svelte +++ b/packages/builder/src/components/integration/QueryViewer.svelte @@ -33,7 +33,7 @@ { label: "Datetime", value: "DATETIME" }, ] - $: datasource = $datasources.list.find(ds => ds._id === query.datasourceId) + $: datasource = $datasources.list.find(ds => ds._id === query.datasourceId) $: query.schema = fields.reduce( (acc, next) => ({ ...acc, @@ -49,7 +49,7 @@ $: queryConfig = integrationInfo?.query $: shouldShowQueryConfig = queryConfig && query.queryVerb $: readQuery = query.queryVerb === "read" || query.readable - $: queryInvalid = !query.name || (readQuery && data.length === 0) + $: queryInvalid = !query.name || (readQuery && data.length === 0) function newField() { fields = [...fields, {}] @@ -152,11 +152,7 @@
Results - diff --git a/packages/standard-components/src/forms/BooleanField.svelte b/packages/standard-components/src/forms/BooleanField.svelte index 2d12a89228..17a3c563bc 100644 --- a/packages/standard-components/src/forms/BooleanField.svelte +++ b/packages/standard-components/src/forms/BooleanField.svelte @@ -9,8 +9,6 @@ let fieldState let fieldApi - - // $: if (fieldApi && $fieldState.value === null) fieldApi.setValue(false)