fix: crash when closing tab (fixes HFE-146)
This commit is contained in:
@@ -215,13 +215,13 @@ const sortTabs = (e: { oldIndex: number; newIndex: number }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const removeTab = (tabID: string) => {
|
const removeTab = (tabID: string) => {
|
||||||
const tab = getTabRef(tabID)
|
const tabState = getTabRef(tabID).value
|
||||||
|
|
||||||
if (tab.value.document.isDirty) {
|
if (tabState.document.isDirty) {
|
||||||
confirmingCloseForTabID.value = tabID
|
confirmingCloseForTabID.value = tabID
|
||||||
} else {
|
} else {
|
||||||
closeTab(tab.value.id)
|
closeTab(tabState.id)
|
||||||
inspectionService.deleteTabInspectorResult(tab.value.id)
|
inspectionService.deleteTabInspectorResult(tabState.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user