Fix: Ensured newaction.returns.example is defined before accessing it
This commit is contained in:
@@ -8588,7 +8588,9 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
// Further checks if those fields are already set in a previously used action
|
// Further checks if those fields are already set in a previously used action
|
||||||
newSelectedAction = RunAutocompleter(newSelectedAction);
|
newSelectedAction = RunAutocompleter(newSelectedAction);
|
||||||
|
|
||||||
|
// Ensured newaction.returns is defined before accessing newaction.returns.example.
|
||||||
if (
|
if (
|
||||||
|
newaction.returns &&
|
||||||
newaction.returns.example !== undefined &&
|
newaction.returns.example !== undefined &&
|
||||||
newaction.returns.example !== null &&
|
newaction.returns.example !== null &&
|
||||||
newaction.returns.example.length > 0
|
newaction.returns.example.length > 0
|
||||||
|
|||||||
Reference in New Issue
Block a user