mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 04:56:00 +00:00
code style
This commit is contained in:
@@ -15,11 +15,7 @@ openedTabs.subscribe(value => {
|
|||||||
|
|
||||||
if (newCurrentTab) {
|
if (newCurrentTab) {
|
||||||
const { conid, database } = newCurrentTab.props || {};
|
const { conid, database } = newCurrentTab.props || {};
|
||||||
if (
|
if (conid && database && (conid != lastTab?.props?.conid || database != lastTab?.props?.database)) {
|
||||||
conid &&
|
|
||||||
database &&
|
|
||||||
(conid != _.get(lastTab, 'props.conid') || database != _.get(lastTab, 'props.database'))
|
|
||||||
) {
|
|
||||||
const doWork = async () => {
|
const doWork = async () => {
|
||||||
const connection = await getConnectionInfo({ conid });
|
const connection = await getConnectionInfo({ conid });
|
||||||
currentDatabase.set({
|
currentDatabase.set({
|
||||||
|
|||||||
Reference in New Issue
Block a user