mirror of
				https://github.com/Fabio286/antares.git
				synced 2025-06-05 21:59:22 +02:00 
			
		
		
		
	fix(PostgreSQL): exception deleting a table with one or less tabs open
This commit is contained in:
		| @@ -680,6 +680,7 @@ export const useWorkspacesStore = defineStore('workspaces', { | |||||||
|          if (!isSelectedExistent && workspace.tabs.length) { |          if (!isSelectedExistent && workspace.tabs.length) { | ||||||
|             if (workspace.customizations.database) { |             if (workspace.customizations.database) { | ||||||
|                const databaseTabs = workspace.tabs.filter(tab => tab.type === 'query' || tab.database === workspace.database); |                const databaseTabs = workspace.tabs.filter(tab => tab.type === 'query' || tab.database === workspace.database); | ||||||
|  |                if (databaseTabs.length) | ||||||
|                   this.selectTab({ uid, tab: databaseTabs[databaseTabs.length - 1].uid }); |                   this.selectTab({ uid, tab: databaseTabs[databaseTabs.length - 1].uid }); | ||||||
|             } |             } | ||||||
|             else |             else | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user