Don't use __name for event labels
@@ -309,13 +309,11 @@ const ScriptEditorEvent = ({
const disabledElse = scriptEvent.args && scriptEvent.args.__disableElse;
const localisedCommand = l10n(command);
- const defaultCommandName =
+ const eventName =
localisedCommand !== command
? localisedCommand
: (events[command] && events[command]?.name) || command;
- const eventName = String(scriptEvent.args?.__name || defaultCommandName);
-
const labelName =
(scriptEvent.args?.__label
? scriptEvent.args.__label
