Fix: Ensured newaction.returns.example is defined before accessing it
This commit is contained in:
@@ -8588,13 +8588,15 @@ 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);
|
||||||
|
|
||||||
if (
|
// Ensured newaction.returns is defined before accessing newaction.returns.example.
|
||||||
newaction.returns.example !== undefined &&
|
if (
|
||||||
newaction.returns.example !== null &&
|
newaction.returns &&
|
||||||
newaction.returns.example.length > 0
|
newaction.returns.example !== undefined &&
|
||||||
) {
|
newaction.returns.example !== null &&
|
||||||
newSelectedAction.example = newaction.returns.example;
|
newaction.returns.example.length > 0
|
||||||
}
|
) {
|
||||||
|
newSelectedAction.example = newaction.returns.example;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
newaction.description !== undefined &&
|
newaction.description !== undefined &&
|
||||||
|
|||||||
Reference in New Issue
Block a user