fix: Use optional chaining and nullish coalescing in resetButton, p=#12300

Signed-off-by: Roman <58283566+rmdeuce@users.noreply.github.com>
This commit is contained in:
Roman
2026-02-08 22:15:57 +10:00
committed by GitHub
parent 102be6cd90
commit e28a10f6a9

View File

@@ -242,7 +242,7 @@ export class nsZenFolder extends MozTabbrowserTabGroup {
}
get resetButton() {
return this.labelElement.parentElement.querySelector(".tab-reset-button");
return this.labelElement.parentElement?.querySelector(".tab-reset-button") ?? null;
}
unloadAllTabs(event) {