Skip to content

Commit 33c8c4a

Browse files
committed
fix: Cannot read property 'classList' of null
1 parent 659d18b commit 33c8c4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/search/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ function doSearch(value) {
137137
$panel.innerHTML = '';
138138

139139
if (options.hideOtherSidebarContent) {
140-
$sidebarNav.classList.remove('hide');
141-
$appName.classList.remove('hide');
140+
$sidebarNav && $sidebarNav.classList.remove('hide');
141+
$appName && $appName.classList.remove('hide');
142142
}
143143

144144
return;

0 commit comments

Comments
 (0)