1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix(PostgreSQL): issue with similar tabs on differend databases

This commit is contained in:
2024-04-18 18:22:29 +02:00
parent 6600197b82
commit 23c59b4d4e
2 changed files with 9 additions and 1 deletions

View File

@@ -579,6 +579,7 @@ export const useWorkspacesStore = defineStore('workspaces', {
tab.schema === schema &&
tab.elementName === elementName &&
tab.elementType === elementType &&
tab.database === workspaceTabs.database &&
[type, type.replace('temp-', '')].includes(tab.type))
: false;
@@ -629,6 +630,7 @@ export const useWorkspacesStore = defineStore('workspaces', {
tab.schema === schema &&
tab.elementName === elementName &&
tab.elementType === elementType &&
tab.database === workspaceTabs.database &&
[`temp-${type}`, type].includes(tab.type))
: false;