We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2218fe4 commit fa4f2f5Copy full SHA for fa4f2f5
src/Shared/Helpers.tsx
@@ -865,9 +865,6 @@ export const getNullValueFromType = (type: StrictRJSFSchema['type']) => {
865
}
866
867
switch (type) {
868
- case 'number':
869
- case 'integer':
870
- return null
871
case 'string':
872
return ''
873
case 'boolean':
@@ -876,6 +873,8 @@ export const getNullValueFromType = (type: StrictRJSFSchema['type']) => {
876
return {}
877
874
case 'array':
878
875
return []
+ case 'number':
+ case 'integer':
879
case 'null':
880
default:
881
return null
0 commit comments