From 4143718d70af8f36656157d9f5fb159ef5b242f3 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 18 Jan 2021 15:40:26 +0000 Subject: [PATCH] lint --- .../src/components/integration/QueryViewer.svelte | 14 ++++++++++---- .../EventsEditor/actions/ExecuteQuery.svelte | 2 +- .../userInterface/TableViewFieldSelect.svelte | 7 ++++--- .../userInterface/TableViewSelect.svelte | 2 +- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/packages/builder/src/components/integration/QueryViewer.svelte b/packages/builder/src/components/integration/QueryViewer.svelte index 6d3d984962..c8157780b8 100644 --- a/packages/builder/src/components/integration/QueryViewer.svelte +++ b/packages/builder/src/components/integration/QueryViewer.svelte @@ -91,11 +91,12 @@ data = json || [] - if (data.length === 0) { - notifier.info("Query results empty. Please execute a query with results to create your schema.") + notifier.info( + "Query results empty. Please execute a query with results to create your schema." + ) return - } + } notifier.success("Query executed successfully.") @@ -170,7 +171,12 @@
- diff --git a/packages/builder/src/components/userInterface/EventsEditor/actions/ExecuteQuery.svelte b/packages/builder/src/components/userInterface/EventsEditor/actions/ExecuteQuery.svelte index 34f0dbda7c..05171a0256 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/actions/ExecuteQuery.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/actions/ExecuteQuery.svelte @@ -15,7 +15,7 @@ components: $store.components, screen: $currentAsset, tables: $backendUiStore.tables, - queries: $backendUiStore.queries + queries: $backendUiStore.queries, }).map(property => ({ ...property, category: property.type === "instance" ? "Component" : "Table", diff --git a/packages/builder/src/components/userInterface/TableViewFieldSelect.svelte b/packages/builder/src/components/userInterface/TableViewFieldSelect.svelte index 9a3b949e2b..0b4b000488 100644 --- a/packages/builder/src/components/userInterface/TableViewFieldSelect.svelte +++ b/packages/builder/src/components/userInterface/TableViewFieldSelect.svelte @@ -13,9 +13,10 @@ let options = [] - $: table = componentInstance.datasource?.type === "table" - ? tables.find(m => m._id === componentInstance.datasource.tableId) - : queries.find(query => query._id === componentInstance.datasource._id) + $: table = + componentInstance.datasource?.type === "table" + ? tables.find(m => m._id === componentInstance.datasource.tableId) + : queries.find(query => query._id === componentInstance.datasource._id) $: type = componentInstance.datasource.type diff --git a/packages/builder/src/components/userInterface/TableViewSelect.svelte b/packages/builder/src/components/userInterface/TableViewSelect.svelte index ccf3751a14..dc34923deb 100644 --- a/packages/builder/src/components/userInterface/TableViewSelect.svelte +++ b/packages/builder/src/components/userInterface/TableViewSelect.svelte @@ -45,7 +45,7 @@ components: $store.components, screen: $currentAsset, tables: $backendUiStore.tables, - queries: $backendUiStore.queries + queries: $backendUiStore.queries, }) $: queryBindableProperties = bindableProperties.map(property => ({