From 5a6149b8c0b1c863ca199896e245cb47c25c88af Mon Sep 17 00:00:00 2001 From: arpitnath Date: Tue, 12 Sep 2023 01:31:22 +0530 Subject: [PATCH] fixes: on csa action changed, the action params should also be updated correctly --- frontend/src/Editor/Inspector/EventManager.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/Editor/Inspector/EventManager.jsx b/frontend/src/Editor/Inspector/EventManager.jsx index 4c9c0390a7..55df1be121 100644 --- a/frontend/src/Editor/Inspector/EventManager.jsx +++ b/frontend/src/Editor/Inspector/EventManager.jsx @@ -217,6 +217,11 @@ export const EventManager = ({ let updatedEvent = newEvents[index]; updatedEvent.event[param] = value; + if (param === 'componentSpecificActionHandle') { + const getDefault = getComponentActionDefaultParams(updatedEvent.event?.componentId, value); + updatedEvent.event['componentSpecificActionParams'] = getDefault; + } + newEvents[index] = updatedEvent; setEvents(newEvents);