fix: missing js arguments so making it optional (#31550)
This commit is contained in:
parent
ea50354c3f
commit
047134d7ce
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ export const getDifferenceInJSCollection = (
|
|||
if (
|
||||
preExisted.actionConfiguration.body !== action.body ||
|
||||
!getDifferenceInJSArgumentArrays(
|
||||
preExisted.actionConfiguration.jsArguments,
|
||||
preExisted.actionConfiguration?.jsArguments,
|
||||
action.arguments,
|
||||
)
|
||||
) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user