Improve section existence check for wizard.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I4125a8fb36358e127d9ba4212debf4c9374066dd
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
This commit is contained in:
Gökay Şatır 2022-04-30 13:22:50 +03:00 committed by Gökay ŞATIR
parent efe1ba3c5e
commit b713340f24

View file

@ -55,7 +55,7 @@ L.Control.MobileWizardPopup = L.Control.extend({
_hideWizard: function () {
this.removeContainer();
if (app.sectionContainer) {
if (app.sectionContainer && app.sectionContainer.doesSectionExist(L.CSections.CommentList.name)) {
app.sectionContainer.getSectionWithName(L.CSections.CommentList.name).removeHighlighters();
app.sectionContainer.getSectionWithName(L.CSections.CommentList.name).layout();
}