File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -417,15 +417,18 @@ export default class ConfigValidator implements IConfigValidator {
417417 if ( ! action . id ) {
418418 action . id = md5hash ( action . name ) ;
419419 }
420+
421+ const defaultListValue = ! ! ( action . action || action . url ) ;
422+
420423 if ( ! action . showIn ) {
421424 action . showIn = {
422- list : true ,
425+ list : defaultListValue ,
423426 listThreeDotsMenu : false ,
424427 showButton : false ,
425428 showThreeDotsMenu : false ,
426429 }
427430 } else {
428- action . showIn . list = action . showIn . list ?? true ;
431+ action . showIn . list = action . showIn . list ?? defaultListValue ;
429432 action . showIn . listThreeDotsMenu = action . showIn . listThreeDotsMenu ?? false ;
430433 action . showIn . showButton = action . showIn . showButton ?? false ;
431434 action . showIn . showThreeDotsMenu = action . showIn . showThreeDotsMenu ?? false ;
You can’t perform that action at this time.
0 commit comments