Skip to content

Commit

Permalink
fix(action): default value of boolean enums
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon committed Dec 18, 2024
1 parent 8750521 commit d1ac0a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/Rule/bridge/useComponentsHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default (
} else if (prop.type === 'boolean' && prop.is_template) {
prop.type = 'enum'
prop.symbols = [true, false]
prop.default ??= ''
} else if (prop.type === 'object' && !prop.properties && prop.is_template) {
setComponentProps(prop, { supportPlaceholder: ['key', 'value'] })
}
Expand Down

0 comments on commit d1ac0a9

Please sign in to comment.