Skip to content

Commit ad98257

Browse files
fix: prevent undefined property access on separateSubsBox for non-SNIK ontologies, related to #437
1 parent 6467759 commit ad98257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/browser/menu.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class Menu {
9494

9595
/** @returns whether subontologies are to be displayed separately. */
9696
separateSubs(): boolean {
97-
return this.separateSubsBox.checked;
97+
return this.separateSubsBox?.checked; // prevent undefined property access, box only exists for SNIK
9898
}
9999

100100
/**

0 commit comments

Comments
 (0)