mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 07:09:07 +03:00
removes preview tab if there is one
This commit is contained in:
1 parent
7c6b74cb20
commit
e93d4165cf
1 file changed
+6
@@ -244,6 +244,12 @@ export const handleTabClose = (
|
||||
store.openTabs = [...currentTabs.map((tab) => tab.id).filter((id) => id !== currentTab.id)]
|
||||
}
|
||||
|
||||
if (store.previewTabId) {
|
||||
if (store.previewTabId === id) {
|
||||
store.previewTabId = undefined
|
||||
}
|
||||
}
|
||||
|
||||
if (nextTabId) {
|
||||
store.activeTab = nextTabId
|
||||
handleTabNavigation(ref, nextTabId, router)
|
||||
|
||||
Reference in new issue
Block a user