1
0
Fork 0
mirror of synced 2024-06-02 18:44:54 +12:00

Use friendly name when adding instances of custom components

This commit is contained in:
Andrew Kingston 2022-09-30 11:26:33 +01:00
parent df88fc57ff
commit 07eb7c061f

View file

@ -428,7 +428,7 @@ export const getFrontendStore = () => {
_id: Helpers.uuid(),
_component: definition.component,
_styles: { normal: {}, hover: {}, active: {} },
_instanceName: `New ${definition.name}`,
_instanceName: `New ${definition.friendlyName || definition.name}`,
...cloneDeep(props),
...extras,
}