Merge pull request #845 from chris-mrl/fix-crash-open-popout-navigation

check tabToRemove is not undefined before access
This commit is contained in:
mathuo 2025-01-30 20:37:09 +00:00 committed by GitHub
commit 06f02ba411
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -283,6 +283,9 @@ export class TabsContainer
const tabToRemove = this.tabs.splice(index, 1)[0];
if (!tabToRemove)
return;
const { value, disposable } = tabToRemove;
disposable.dispose();