From 1c0c2bbc71815a673fcdd95f06442514e7928f68 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Wed, 7 Apr 2021 21:29:37 +0200 Subject: [PATCH] activator used whereever possible --- packages/web/src/datagrid/DataGrid.svelte | 2 +- packages/web/src/datagrid/DataGridCore.svelte | 1 - packages/web/src/formview/FormView.svelte | 2 -- packages/web/src/tabs/ChartTab.svelte | 17 +++----------- .../web/src/tabs/FavoriteEditorTab.svelte | 11 ++++----- .../web/src/tabs/MarkdownEditorTab.svelte | 12 ++++------ packages/web/src/tabs/QueryDesignTab.svelte | 21 ++++------------- packages/web/src/tabs/QueryTab.svelte | 15 +++++------- packages/web/src/tabs/ShellTab.svelte | 23 ++++++------------- packages/web/src/utility/saveTabFile.ts | 2 +- 10 files changed, 31 insertions(+), 75 deletions(-) diff --git a/packages/web/src/datagrid/DataGrid.svelte b/packages/web/src/datagrid/DataGrid.svelte index bf1f0d78..8f923adb 100644 --- a/packages/web/src/datagrid/DataGrid.svelte +++ b/packages/web/src/datagrid/DataGrid.svelte @@ -56,7 +56,7 @@ let managerSize; $: isFormView = !!(formDisplay && formDisplay.config && formDisplay.config.isFormView); - $: isJsonView = !!config.isJsonView; + $: isJsonView = !!config?.isJsonView; const handleExecuteMacro = () => { onRunMacro($selectedMacro, extractMacroValuesForMacro($macroValues, $selectedMacro), selectedCellsPublished()); diff --git a/packages/web/src/datagrid/DataGridCore.svelte b/packages/web/src/datagrid/DataGridCore.svelte index 9e160a0d..03bd99f9 100644 --- a/packages/web/src/datagrid/DataGridCore.svelte +++ b/packages/web/src/datagrid/DataGridCore.svelte @@ -220,7 +220,6 @@