diff --git a/frontend/src/Editor/Inspector/EventManager.jsx b/frontend/src/Editor/Inspector/EventManager.jsx index 55df1be121..1fe84f2e87 100644 --- a/frontend/src/Editor/Inspector/EventManager.jsx +++ b/frontend/src/Editor/Inspector/EventManager.jsx @@ -184,7 +184,7 @@ export const EventManager = ({ function getComponentActionDefaultParams(componentId, actionHandle) { const action = getAction(componentId, actionHandle); - const defaultParams = (action.params ?? []).map((param) => ({ + const defaultParams = (action?.params ?? []).map((param) => ({ handle: param.handle, value: param.defaultValue, })); @@ -757,7 +757,7 @@ export const EventManager = ({ {event?.componentId && event?.componentSpecificActionHandle && - (getAction(event?.componentId, event?.componentSpecificActionHandle).params ?? []).map((param) => ( + (getAction(event?.componentId, event?.componentSpecificActionHandle)?.params ?? []).map((param) => (