code style

This commit is contained in:
Jan Prochazka
2022-06-09 09:25:47 +02:00
parent 5e2279cd10
commit 148222e239

View File

@@ -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({