Don't assume commandGroup has a demote property set

Bug: T203282
Change-Id: Ic67dcfb2a473559d5e5d457072cda101844fe1e9
This commit is contained in:
Ed Sanders 2018-08-31 22:18:19 +01:00
parent b958cfbe38
commit 222ad828bd

View file

@ -183,6 +183,7 @@ ve.ui.commandRegistry.register(
trigger: shortcut.command,
label: shortcut.label
} );
ve.ui.MWCommandHelpDialog.static.commandGroups.other.demote = ve.ui.MWCommandHelpDialog.static.commandGroups.other.demote || [];
ve.ui.MWCommandHelpDialog.static.commandGroups.other.demote.push( shortcut.command );
}
} );