Skip to content

Commit

Permalink
avoid overriding action body if it already exist
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhrathod01 committed Oct 20, 2024
1 parent 4276fd9 commit d89f9d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/client/src/ce/entities/DataTree/dataTreeJSAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export const generateDataTreeJSAction = (
for (let i = 0; i < actions.length; i++) {
const action = actions[i];

// If action already exists, skip adding it to the data tree
if (actionsData[action.name]) continue;

meta[action.name] = {
arguments: action.actionConfiguration?.jsArguments || [],
confirmBeforeExecute: !!action.confirmBeforeExecute,
Expand Down

0 comments on commit d89f9d7

Please sign in to comment.