From 640959788cb22aa473f4c7e0177cabc864d9d8b1 Mon Sep 17 00:00:00 2001 From: Apeksha Bhosale <7846888+ApekshaBhosale@users.noreply.github.com> Date: Mon, 10 May 2021 19:40:22 +0530 Subject: [PATCH] match is not a function (#4409) (cherry picked from commit 2138c9059b586807125b16ba77336aaaba4ca828) --- app/client/src/widgets/ListWidget/ListWidget.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/src/widgets/ListWidget/ListWidget.tsx b/app/client/src/widgets/ListWidget/ListWidget.tsx index acffc99698..5b12f32489 100644 --- a/app/client/src/widgets/ListWidget/ListWidget.tsx +++ b/app/client/src/widgets/ListWidget/ListWidget.tsx @@ -224,7 +224,7 @@ class ListWidget extends BaseWidget, WidgetState> { evaluatedProperty.length > itemIndex ) { const evaluatedValue = evaluatedProperty[itemIndex]; - if (isPlainObject(evaluatedValue)) + if (isPlainObject(evaluatedValue) || Array.isArray(evaluatedValue)) set(widget, path, JSON.stringify(evaluatedValue)); else set(widget, path, evaluatedValue); }