mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 13:37:28 +00:00
Fix: Clean up check logic
This commit is contained in:
parent
54840f376e
commit
7eee64b1d3
1 changed files with 3 additions and 6 deletions
|
|
@ -329,12 +329,9 @@ export class ComponentsService implements IComponentsService {
|
|||
// Handle Form component with object srcValue like JSONData & JSONSchema
|
||||
return srcValue;
|
||||
} else if (
|
||||
(componentData.type === 'DropdownV2' ||
|
||||
componentData.type === 'MultiselectV2' ||
|
||||
componentData.type === 'ModuleContainer' ||
|
||||
componentData.type === 'Tabs' ||
|
||||
componentData.type === 'Steps' ||
|
||||
componentData.type === 'RadioButtonV2') &&
|
||||
['DropdownV2', 'MultiselectV2', 'ModuleContainer', 'Tabs', 'Steps', 'RadioButtonV2'].includes(
|
||||
componentData.type
|
||||
) &&
|
||||
_.isArray(objValue)
|
||||
) {
|
||||
return _.isArray(srcValue) ? srcValue : Object.values(srcValue);
|
||||
|
|
|
|||
Loading…
Reference in a new issue