fix: undefined usage in _hideWizard

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I085c5e4882a25a56b11346276e61aa5196caf4f7
This commit is contained in:
Szymon Kłos 2021-11-25 13:34:51 +01:00 committed by Szymon Kłos
parent ee609ff4b1
commit 4764937ad4

View file

@ -52,8 +52,10 @@ L.Control.MobileWizardPopup = L.Control.extend({
_hideWizard: function () {
this.removeContainer();
app.sectionContainer.getSectionWithName(L.CSections.CommentList.name).removeHighlighters();
app.sectionContainer.getSectionWithName(L.CSections.CommentList.name).layout();
if (app.sectionContainer) {
app.sectionContainer.getSectionWithName(L.CSections.CommentList.name).removeHighlighters();
app.sectionContainer.getSectionWithName(L.CSections.CommentList.name).layout();
}
},
_setTitle: function(title) {