diff --git a/app/client/src/components/editorComponents/ActionCreator/helpers.tsx b/app/client/src/components/editorComponents/ActionCreator/helpers.tsx index cc1a1cdf62..d67db141bc 100644 --- a/app/client/src/components/editorComponents/ActionCreator/helpers.tsx +++ b/app/client/src/components/editorComponents/ActionCreator/helpers.tsx @@ -550,7 +550,7 @@ export function getJSOptions( jsObject.children = []; jsAction.config.actions.forEach((js: JSAction) => { - const jsArguments = js.actionConfiguration.jsArguments; + const jsArguments = js.actionConfiguration?.jsArguments; const argValue: Array = []; if (jsArguments && jsArguments.length) { @@ -596,7 +596,7 @@ export function getJSOptions( jsObject.children = []; jsModuleInstance.config.actions.forEach((js: JSAction) => { - const jsArguments = js.actionConfiguration.jsArguments; + const jsArguments = js.actionConfiguration?.jsArguments; const argValue: Array = []; if (jsArguments && jsArguments.length) { diff --git a/app/client/src/utils/JSPaneUtils.tsx b/app/client/src/utils/JSPaneUtils.tsx index 57d0693e3c..d8dccc0cff 100644 --- a/app/client/src/utils/JSPaneUtils.tsx +++ b/app/client/src/utils/JSPaneUtils.tsx @@ -43,7 +43,7 @@ export const getDifferenceInJSCollection = ( if ( preExisted.actionConfiguration.body !== action.body || !getDifferenceInJSArgumentArrays( - preExisted.actionConfiguration.jsArguments, + preExisted.actionConfiguration?.jsArguments, action.arguments, ) ) {