browser: fix "Uncaught TypeError: getSectionWithName"

Change-Id: I660ca7cbc9e6ce6eaa3834ebd3c2829c606bc045
Signed-off-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
Henry Castro 2024-01-25 09:13:31 -04:00 committed by Caolán McNamara
parent c4e7693ed3
commit 22c11a3557

View file

@ -988,7 +988,7 @@ export class Comment extends CanvasSectionObject {
}
public static isAnyEdit (): boolean {
var section = app.sectionContainer ?
var section = app.sectionContainer && app.sectionContainer instanceof CanvasSectionContainer ?
app.sectionContainer.getSectionWithName(L.CSections.CommentList.name) : null;
if (!section) {
return false;