browser: fix "Uncaught TypeError: getSectionWithName"
Change-Id: I660ca7cbc9e6ce6eaa3834ebd3c2829c606bc045 Signed-off-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
parent
c4e7693ed3
commit
22c11a3557
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue