From 148222e239129931d28b7dc6d32a7ec0606a48d6 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 9 Jun 2022 09:25:47 +0200 Subject: [PATCH] code style --- packages/web/src/utility/changeCurrentDbByTab.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/web/src/utility/changeCurrentDbByTab.ts b/packages/web/src/utility/changeCurrentDbByTab.ts index c3b75caf3..0e3284ba6 100644 --- a/packages/web/src/utility/changeCurrentDbByTab.ts +++ b/packages/web/src/utility/changeCurrentDbByTab.ts @@ -15,11 +15,7 @@ openedTabs.subscribe(value => { if (newCurrentTab) { const { conid, database } = newCurrentTab.props || {}; - if ( - conid && - database && - (conid != _.get(lastTab, 'props.conid') || database != _.get(lastTab, 'props.database')) - ) { + if (conid && database && (conid != lastTab?.props?.conid || database != lastTab?.props?.database)) { const doWork = async () => { const connection = await getConnectionInfo({ conid }); currentDatabase.set({