Use friendly name in new component panel if available

This commit is contained in:
Andrew Kingston 2022-08-12 14:34:02 +01:00
parent a7c424550c
commit 233d5e190c
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,10 @@
enrichedStructure.push({ enrichedStructure.push({
name: "Custom components", name: "Custom components",
isCategory: true, isCategory: true,
children: customComponents.map(x => definitions[x]), children: customComponents.map(x => ({
...definitions[x],
name: definitions[x].friendlyName || definitions[x].name,
})),
}) })
} }