diff --git a/packages/console/src/components/Literals/helpers.ts b/packages/console/src/components/Literals/helpers.ts index 53a8ccb5b..4c0223315 100644 --- a/packages/console/src/components/Literals/helpers.ts +++ b/packages/console/src/components/Literals/helpers.ts @@ -361,7 +361,7 @@ function processCollection( return 'invalid collection'; } - if (!isNaN(mapTaskIndex!)) { + if (mapTaskIndex !== undefined && !isNaN(mapTaskIndex)) { literals = (literals || []).splice(mapTaskIndex!, 1); }