Skip to content

Commit e28a10f

Browse files
authored
fix: Use optional chaining and nullish coalescing in resetButton, p=#12300
Signed-off-by: Roman <58283566+rmdeuce@users.noreply.github.com>
1 parent 102be6c commit e28a10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zen/folders/ZenFolder.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export class nsZenFolder extends MozTabbrowserTabGroup {
242242
}
243243

244244
get resetButton() {
245-
return this.labelElement.parentElement.querySelector(".tab-reset-button");
245+
return this.labelElement.parentElement?.querySelector(".tab-reset-button") ?? null;
246246
}
247247

248248
unloadAllTabs(event) {

0 commit comments

Comments
 (0)