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>
|
</li>
|
||||||
</template>
|
</template>
|
||||||
</Draggable>
|
</Draggable>
|
||||||
<WorkspaceEmptyState v-if="!workspace.tabs.length" @new-tab="addQueryTab" />
|
<WorkspaceEmptyState v-if="!draggableTabs.length" @new-tab="addQueryTab" />
|
||||||
<template v-for="tab of workspace.tabs" :key="tab.uid">
|
<template v-for="tab of draggableTabs" :key="tab.uid">
|
||||||
<WorkspaceTabQuery
|
<WorkspaceTabQuery
|
||||||
v-if="tab.type ==='query'"
|
v-if="tab.type ==='query'"
|
||||||
:tab-uid="tab.uid"
|
:tab-uid="tab.uid"
|
||||||
|
|
|
@ -233,7 +233,7 @@ export const useWorkspacesStore = defineStore('workspaces', {
|
||||||
|
|
||||||
const selectedTab = cachedTabs.length
|
const selectedTab = cachedTabs.length
|
||||||
? connection.database
|
? 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
|
: cachedTabs[0].uid
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue