Преглед на файлове

Render field integers even without min and max

Allow integer fields to get render if they don't have a minimum and a
maximum value.
Sergiu Miclea преди 6 години
родител
ревизия
660b92834a
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  1. 0 1
      src/components/organisms/WizardOptions/WizardOptions.jsx

+ 0 - 1
src/components/organisms/WizardOptions/WizardOptions.jsx

@@ -94,7 +94,6 @@ const LoadingText = styled.div`
 
 export const shouldRenderField = (field: Field) => {
   return (field.type !== 'array' || (field.enum && field.enum.length && field.enum.length > 0)) &&
-    (field.type !== 'integer' || (field.minimum && field.maximum)) &&
     (field.type !== 'object' || field.properties)
 }
 type FieldRender = {