From 5f3336531f3078b71783691a4a536be8e26891aa Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 21 Jun 2021 13:55:34 +0100 Subject: [PATCH] finally fixing cypress tests --- .../components/backend/DataTable/modals/CalculateModal.svelte | 2 +- .../src/components/backend/DataTable/modals/FilterModal.svelte | 2 +- .../src/components/backend/DataTable/modals/GroupByModal.svelte | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte b/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte index d445fcba7e..c8ad985874 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte @@ -20,7 +20,7 @@ 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 6853e4ecb6..d60c9676ae 100644 --- a/packages/builder/src/components/backend/DataTable/modals/FilterModal.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/FilterModal.svelte @@ -57,7 +57,7 @@ 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 a9f0d5e368..4152596708 100644 --- a/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte @@ -5,7 +5,7 @@ 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)