Skip to content

Commit

Permalink
fix(action): some fields placeholders are not selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon committed May 11, 2024
1 parent 7d530c5 commit d64d4ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/Rule/bridge/useComponentsHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { get, pick } from 'lodash'
import { useRedisCommandCheck } from '../useDataHandler'
import { useAvailableProviders } from '../useProvidersForMonaco'


type Handler = ({ components, rules }: { components: Properties; rules: SchemaRules }) => {
components: Properties
rules: SchemaRules
Expand Down Expand Up @@ -171,6 +170,7 @@ export default (
command_template.type = 'string'
command_template.format = 'sql'
command_template.default = ''
command_template.is_template = true
}
if (
rules?.['parameters.command_template'] &&
Expand Down Expand Up @@ -384,6 +384,7 @@ export default (

if (key === 'value' && value.type === 'oneof') {
value.type = 'string'
value.is_template = true
} else if (key === 'tags' && value.type === 'oneof') {
value.type = 'object'
value.componentProps = { type: 'input', supportPlaceholder: ['key', 'value'] }
Expand Down

0 comments on commit d64d4ca

Please sign in to comment.