🐛 fix(parameterComponent): add fallback custom component when groupedObj is empty to prevent rendering issues
This commit is contained in:
parent
eece41a69a
commit
4677dcfad2
1 changed files with 8 additions and 0 deletions
|
|
@ -114,6 +114,14 @@ export default function ParameterComponent({
|
||||||
data.type,
|
data.type,
|
||||||
flow
|
flow
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (groupedObj?.length === 0) {
|
||||||
|
groupedObj.push({
|
||||||
|
family: "custom_components",
|
||||||
|
type: '',
|
||||||
|
component: 'Try add a custom component',
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (groupedObj) {
|
if (groupedObj) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue