fix(PostgreSQL): unable to connect to database, fixes #614

This commit is contained in:
Fabio Di Stasio 2023-07-06 22:01:41 +02:00
parent 6e01f0f2e7
commit e808b86c52
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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;