Skip to content

Commit fa4f2f5

Browse files
committed
fix: review comments
1 parent 2218fe4 commit fa4f2f5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Shared/Helpers.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -865,9 +865,6 @@ export const getNullValueFromType = (type: StrictRJSFSchema['type']) => {
865865
}
866866

867867
switch (type) {
868-
case 'number':
869-
case 'integer':
870-
return null
871868
case 'string':
872869
return ''
873870
case 'boolean':
@@ -876,6 +873,8 @@ export const getNullValueFromType = (type: StrictRJSFSchema['type']) => {
876873
return {}
877874
case 'array':
878875
return []
876+
case 'number':
877+
case 'integer':
879878
case 'null':
880879
default:
881880
return null

0 commit comments

Comments
 (0)