Merge "mw.popups.isEnabled should always return boolean"

This commit is contained in:
jenkins-bot 2023-10-16 18:08:29 +00:00 committed by Gerrit Code Review
commit 9cfd3358aa
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -20,7 +20,7 @@ export default function createMwPopups( store, registerModel, registerPreviewUI,
* @return {boolean} If Page Previews are currently active
*/
isEnabled: function isEnabled() {
return store.getState().preview.enabled[ previewTypes.TYPE_PAGE ];
return !!store.getState().preview.enabled[ previewTypes.TYPE_PAGE ];
},
/**
* @stable Do not remove properties in the type PopupModule without providing backwards