match is not a function (#4409)

(cherry picked from commit 2138c9059b)
This commit is contained in:
Apeksha Bhosale 2021-05-10 19:40:22 +05:30 committed by Sumit Kumar
parent bb74ba876f
commit 640959788c

View File

@ -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);
}