🐛 fix(parameterComponent): add fallback custom component when groupedObj is empty to prevent rendering issues

This commit is contained in:
Cristhian Zanforlin Lousa 2023-07-25 10:27:45 -03:00
commit 4677dcfad2

View file

@ -114,6 +114,14 @@ export default function ParameterComponent({
data.type,
flow
);
if (groupedObj?.length === 0) {
groupedObj.push({
family: "custom_components",
type: '',
component: 'Try add a custom component',
});
}
}
if (groupedObj) {