From 325e44cbdb28e6b8102d3eaf726e4677f551c9b5 Mon Sep 17 00:00:00 2001 From: Manish Kushare Date: Wed, 19 Oct 2022 07:44:03 +0530 Subject: [PATCH] bug fixed : selecting badge is breaking the table (#4416) --- frontend/src/Editor/Components/Table/CustomSelect.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/Editor/Components/Table/CustomSelect.jsx b/frontend/src/Editor/Components/Table/CustomSelect.jsx index 865c9f2e64..851c3f0ab2 100644 --- a/frontend/src/Editor/Components/Table/CustomSelect.jsx +++ b/frontend/src/Editor/Components/Table/CustomSelect.jsx @@ -7,7 +7,9 @@ export const CustomSelect = ({ options, value, multiple, onChange, darkMode }) = function renderValue(valueProps) { if (valueProps) { - return valueProps.value.split(', ').map((value, index) => ( + const stringifyValue = String(valueProps.value); + const arrayOfValueProps = stringifyValue.includes(',') ? stringifyValue.split(', ') : stringifyValue.split(' '); + return arrayOfValueProps.map((value, index) => ( {value}