🩹 fix(common-title-management): add undefined check for activeTabId

Ensure activeTabId is not undefined before patching tab name.
This commit is contained in:
Lorenz Hilpert
2025-12-11 13:54:55 +01:00
parent 3d217ae83a
commit d9604572b3

View File

@@ -80,7 +80,7 @@ export class IsaTitleStrategy extends TitleStrategy {
const tabService = this.#getTabService();
const activeTabId = tabService.activatedTabId();
if (activeTabId !== null) {
if (activeTabId !== null && activeTabId !== undefined) {
tabService.patchTab(activeTabId, {
name: pageTitle,
});