mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
🩹 fix(common-title-management): add undefined check for activeTabId
Ensure activeTabId is not undefined before patching tab name.
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user