fix: missing js arguments so making it optional (#31550)

This commit is contained in:
Apeksha Bhosale 2024-03-06 14:53:44 +05:30 committed by GitHub
parent ea50354c3f
commit 047134d7ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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<any> = [];
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<any> = [];
if (jsArguments && jsArguments.length) {

View File

@ -43,7 +43,7 @@ export const getDifferenceInJSCollection = (
if (
preExisted.actionConfiguration.body !== action.body ||
!getDifferenceInJSArgumentArrays(
preExisted.actionConfiguration.jsArguments,
preExisted.actionConfiguration?.jsArguments,
action.arguments,
)
) {