Fix: Ensured newaction.returns.example is defined before accessing it

This commit is contained in:
lalitdeore
2024-02-15 10:54:29 +05:30
parent 1c38d328ab
commit b96b526b82
+2
View File
@@ -8588,7 +8588,9 @@ const AngularWorkflow = (defaultprops) => {
// Further checks if those fields are already set in a previously used action
newSelectedAction = RunAutocompleter(newSelectedAction);
// Ensured newaction.returns is defined before accessing newaction.returns.example.
if (
newaction.returns &&
newaction.returns.example !== undefined &&
newaction.returns.example !== null &&
newaction.returns.example.length > 0