mirror of https://github.com/Fabio286/antares.git
fix(PostgreSQL): unable to connect to database, fixes #614
This commit is contained in:
parent
6e01f0f2e7
commit
e808b86c52
|
@ -331,8 +331,8 @@
|
|||
</li>
|
||||
</template>
|
||||
</Draggable>
|
||||
<WorkspaceEmptyState v-if="!workspace.tabs.length" @new-tab="addQueryTab" />
|
||||
<template v-for="tab of workspace.tabs" :key="tab.uid">
|
||||
<WorkspaceEmptyState v-if="!draggableTabs.length" @new-tab="addQueryTab" />
|
||||
<template v-for="tab of draggableTabs" :key="tab.uid">
|
||||
<WorkspaceTabQuery
|
||||
v-if="tab.type ==='query'"
|
||||
:tab-uid="tab.uid"
|
||||
|
|
|
@ -233,7 +233,7 @@ export const useWorkspacesStore = defineStore('workspaces', {
|
|||
|
||||
const selectedTab = cachedTabs.length
|
||||
? connection.database
|
||||
? cachedTabs.filter(tab => tab.type === 'query' || tab.database === connection.database)[0].uid
|
||||
? cachedTabs.filter(tab => tab.type === 'query' || tab.database === connection.database)[0]?.uid
|
||||
: cachedTabs[0].uid
|
||||
: null;
|
||||
|
||||
|
|
Loading…
Reference in New Issue