File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -320,11 +320,11 @@ module.exports = {
320
320
values ( list ) . filter ( ( component ) => ! component . hasDisplayName ) . forEach ( ( component ) => {
321
321
reportMissingDisplayName ( component ) ;
322
322
} ) ;
323
- // Report missing display name for all context objects
324
- const contextsList = Array . from ( contextObjects . values ( ) ) . filter (
325
- ( v ) => ! v . hasDisplayName
326
- ) ;
327
- contextsList . forEach ( ( contextObj ) => reportMissingContextDisplayName ( contextObj ) ) ;
323
+ if ( checkContextObjects ) {
324
+ // Report missing display name for all context objects
325
+ const contextsList = Array . from ( contextObjects . values ( ) ) . filter ( ( v ) => ! v . hasDisplayName ) ;
326
+ contextsList . forEach ( ( contextObj ) => reportMissingContextDisplayName ( contextObj ) ) ;
327
+ }
328
328
} ,
329
329
} ;
330
330
} ) ,
You can’t perform that action at this time.
0 commit comments