Skip to content

Commit

Permalink
fix: Cannot read property classList of null
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Mar 9, 2021
1 parent 33c8c4a commit 2744b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/search/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ function doSearch(value) {
$clearBtn.classList.add('show');
$panel.innerHTML = html || `<p class="empty">${NO_DATA_TEXT}</p>`;
if (options.hideOtherSidebarContent) {
$sidebarNav.classList.add('hide');
$appName.classList.add('hide');
$sidebarNav && $sidebarNav.classList.add('hide');
$appName && $appName.classList.add('hide');
}
}

Expand Down

0 comments on commit 2744b91

Please sign in to comment.