bug fixed : element inside values other than boolean type was resulting to a warning in debugger (#5765)

This commit is contained in:
Manish Kushare 2023-03-22 15:49:57 +05:30 committed by GitHub
parent 668078532b
commit 20a098ec19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1482,14 +1482,17 @@ export const widgets = [
type: 'code',
displayName: 'Default value',
validation: {
schema: { type: 'boolean' },
schema: { type: 'union', schemas: [{ type: 'string' }, { type: 'number' }, { type: 'boolean' }] },
},
},
values: {
type: 'code',
displayName: 'Option values',
validation: {
schema: { type: 'array', element: { type: 'boolean' } },
schema: {
type: 'array',
element: { type: 'union', schemas: [{ type: 'string' }, { type: 'number' }, { type: 'boolean' }] },
},
},
},
display_values: {