File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ function doSearch(value) {
137
137
$panel . innerHTML = '' ;
138
138
139
139
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' ) ;
142
142
}
143
143
144
144
return ;
@@ -160,8 +160,8 @@ function doSearch(value) {
160
160
$clearBtn . classList . add ( 'show' ) ;
161
161
$panel . innerHTML = html || `<p class="empty">${ NO_DATA_TEXT } </p>` ;
162
162
if ( options . hideOtherSidebarContent ) {
163
- $sidebarNav . classList . add ( 'hide' ) ;
164
- $appName . classList . add ( 'hide' ) ;
163
+ $sidebarNav && $sidebarNav . classList . add ( 'hide' ) ;
164
+ $appName && $appName . classList . add ( 'hide' ) ;
165
165
}
166
166
}
167
167
You can’t perform that action at this time.
0 commit comments