From 285b73ceea9462c386f2bd56f3ba13a712339831 Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Wed, 18 Aug 2021 00:04:54 +0200 Subject: [PATCH] fix lint issues --- packages/bbui/src/ActionMenu/ActionMenu.svelte | 2 +- .../DatasourceNavigator/modals/UpdateDatasourceModal.svelte | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/bbui/src/ActionMenu/ActionMenu.svelte b/packages/bbui/src/ActionMenu/ActionMenu.svelte index 1c05021d12..08425e8f59 100644 --- a/packages/bbui/src/ActionMenu/ActionMenu.svelte +++ b/packages/bbui/src/ActionMenu/ActionMenu.svelte @@ -23,7 +23,7 @@ dropdown.show() } - const openMenu = (event) => { + const openMenu = event => { if (!disabled) { event.stopPropagation() show() diff --git a/packages/builder/src/components/backend/DatasourceNavigator/modals/UpdateDatasourceModal.svelte b/packages/builder/src/components/backend/DatasourceNavigator/modals/UpdateDatasourceModal.svelte index 44148ebb6e..561548fb59 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/modals/UpdateDatasourceModal.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/modals/UpdateDatasourceModal.svelte @@ -21,9 +21,7 @@ function checkValid(evt) { const datasourceName = evt.target.value - if ( - $datasources?.list.some(ds => ds.name === datasourceName) - ) { + if ($datasources?.list.some(ds => ds.name === datasourceName)) { error = `Datasource with name ${datasourceName} already exists. Please choose another name.` return } @@ -59,4 +57,3 @@ /> -