Skip to content

Commit

Permalink
fix(action): logic for handling monaco provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon committed May 11, 2024
1 parent 0d26641 commit e14bf53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/hooks/Rule/bridge/useComponentsHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ export default (
Object.values(prop.properties).forEach((item) => walk(item))
} else if (prop.type === 'oneof') {
prop.oneOf?.forEach((item) => walk(item))
} else if (prop.type === 'string' && prop.format === 'sql' && prop.is_template) {
} else if (
['string', 'sql'].includes(prop.type) &&
prop.format === 'sql' &&
prop.is_template
) {
if (!prop.componentProps) {
prop.componentProps = {}
}
Expand Down

0 comments on commit e14bf53

Please sign in to comment.