Merge pull request #15548 from Budibase/revert-default-icon

Revert setting a default icon
This commit is contained in:
Andrew Kingston 2025-02-13 14:35:17 +00:00 committed by GitHub
commit 72785cd342
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -311,8 +311,6 @@ 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

View File

@ -1455,7 +1455,8 @@
"type": "icon",
"label": "Icon",
"key": "icon",
"required": true
"required": true,
"defaultValue": "ri-star-fill"
},
{
"type": "select",