提交 ff4753f4 编写于 作者: R Rob Lourens

Fix #71832

上级 672f721e
......@@ -1222,8 +1222,14 @@ export class SettingsEditor2 extends BaseEditor {
return;
}
this.clearFilterLinkContainer.style.display = this.viewState.tagFilters && this.viewState.tagFilters.size > 0
? 'initial'
: 'none';
if (!this.searchResultModel) {
this.countElement.style.display = 'none';
DOM.removeClass(this.rootElement, 'no-results');
return;
}
if (this.tocTreeModel && this.tocTreeModel.settingsTreeRoot) {
......@@ -1236,9 +1242,6 @@ export class SettingsEditor2 extends BaseEditor {
this.countElement.style.display = 'block';
DOM.toggleClass(this.rootElement, 'no-results', count === 0);
this.clearFilterLinkContainer.style.display = this.viewState.tagFilters && this.viewState.tagFilters.size > 0
? 'initial'
: 'none';
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册