diff --git a/frontend/src/Editor/Inspector/EventManager.jsx b/frontend/src/Editor/Inspector/EventManager.jsx index c2174bb5aa..7f844a0d37 100644 --- a/frontend/src/Editor/Inspector/EventManager.jsx +++ b/frontend/src/Editor/Inspector/EventManager.jsx @@ -24,6 +24,8 @@ export const EventManager = ({ return { name: action.name, value: action.id }; }); + const actionLookup = Object.fromEntries(ActionTypes.map((actionType) => [actionType.id, actionType])); + let alertTypes = [ { name: 'Info', @@ -157,9 +159,11 @@ export const EventManager = ({ -
- Action options -
+ {actionLookup[event.actionId].options?.length > 0 && ( +
+ Action options +
+ )}
{event.actionId === 'show-alert' && ( <>