MultiselectV2 & Dropdown options not saving fix (#2493)

This commit is contained in:
Shaurya Sharma 2024-10-25 12:43:25 +05:30 committed by Shaurya Sharma
parent b93e843a5e
commit 4668b02fa5

View file

@ -36,7 +36,10 @@ export const buildComponentMetaDefinition = (components = {}) => {
componentMeta.definition.properties,
currentComponentData?.component?.definition?.properties,
(objValue, srcValue) => {
if (currentComponentData?.component?.component === 'Table' && isArray(objValue)) {
if (
['Table', 'DropdownV2', 'MultiselectV2'].includes(currentComponentData?.component?.component) &&
isArray(objValue)
) {
return srcValue;
}
}