1
0
Fork 0
mirror of synced 2024-08-26 23:42:06 +12:00

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 8c227c0edd
commit 5ae40d8e15

View file

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