fixes: on csa action changed, the action params should also be updated correctly

This commit is contained in:
arpitnath 2023-09-12 01:31:22 +05:30
parent 1c436f3182
commit 5a6149b8c0

View file

@ -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);