Skip to content

Commit

Permalink
match is not a function (#4409)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2138c90)
  • Loading branch information
ApekshaBhosale authored and sumitsum committed May 11, 2021
1 parent bb74ba8 commit 6409597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/src/widgets/ListWidget/ListWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class ListWidget extends BaseWidget<ListWidgetProps<WidgetProps>, 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);
}
Expand Down

0 comments on commit 6409597

Please sign in to comment.