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 @@ /> -