From 96f477ddfd41f228c6da7662d8aa28bb19867ebb Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 21 Jun 2021 14:06:06 +0100 Subject: [PATCH] Linting and adding internal_api_key to cypress. --- packages/builder/cypress/setup.js | 1 + .../components/backend/DataTable/modals/CalculateModal.svelte | 4 +++- .../components/backend/DataTable/modals/FilterModal.svelte | 4 +++- .../components/backend/DataTable/modals/GroupByModal.svelte | 4 +++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/builder/cypress/setup.js b/packages/builder/cypress/setup.js index c55cef2afe..0aa43308af 100644 --- a/packages/builder/cypress/setup.js +++ b/packages/builder/cypress/setup.js @@ -20,6 +20,7 @@ process.env.MINIO_ACCESS_KEY = "budibase" process.env.MINIO_SECRET_KEY = "budibase" process.env.COUCH_DB_USER = "budibase" process.env.COUCH_DB_PASSWORD = "budibase" +process.env.INTERNAL_API_KEY = "budibase" // Stop info logs polluting test outputs process.env.LOG_LEVEL = "error" diff --git a/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte b/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte index c8ad985874..8fe753cba8 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte @@ -20,7 +20,9 @@ export let view = {} - $: viewTable = $tables.list.find(({ _id }) => _id === $views.selected?.tableId) + $: viewTable = $tables.list.find( + ({ _id }) => _id === $views.selected?.tableId + ) $: fields = viewTable && Object.keys(viewTable.schema).filter( diff --git a/packages/builder/src/components/backend/DataTable/modals/FilterModal.svelte b/packages/builder/src/components/backend/DataTable/modals/FilterModal.svelte index d60c9676ae..170bb75142 100644 --- a/packages/builder/src/components/backend/DataTable/modals/FilterModal.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/FilterModal.svelte @@ -57,7 +57,9 @@ export let view = {} - $: viewTable = $tables.list.find(({ _id }) => _id === $views.selected?.tableId) + $: viewTable = $tables.list.find( + ({ _id }) => _id === $views.selected?.tableId + ) $: fields = viewTable && Object.keys(viewTable.schema) function saveView() { diff --git a/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte b/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte index 4152596708..b566a24ca8 100644 --- a/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte @@ -5,7 +5,9 @@ export let view = {} - $: viewTable = $tables.list.find(({ _id }) => _id === $views.selected?.tableId) + $: viewTable = $tables.list.find( + ({ _id }) => _id === $views.selected?.tableId + ) $: fields = viewTable && Object.entries(viewTable.schema)