mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fixes: on csa action changed, the action params should also be updated correctly
This commit is contained in:
parent
1c436f3182
commit
5a6149b8c0
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue