Add default icon for icon settings

This commit is contained in:
Andrew Kingston 2025-02-13 09:06:44 +00:00
parent b6796ffa9c
commit 4685a45916
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -299,6 +299,8 @@ export class ComponentStore extends BudiStore<ComponentState> {
component[setting.key] = fieldOptions[0]
component.label = fieldOptions[0]
}
} else if (setting.type === "icon") {
component[setting.key] = "ri-star-fill"
} else if (useDefaultValues && setting.defaultValue !== undefined) {
// Use default value where required
component[setting.key] = setting.defaultValue