outaozhen пре 3 година
родитељ
комит
0466a8d118

+ 1 - 1
src/pages/Institutions/Staff/components/StaffDetail.tsx

@@ -252,7 +252,7 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
             schema={schema}
             onFinish={onFinish}
             onMount={onMount}
-            readOnly={type === ModalType.PREVIEW ? true : null}
+            readOnly={type === ModalType.PREVIEW ? true : false}
             widgets={{ site: SiteInput }}
             watch={watch}
           />

+ 1 - 1
src/pages/Project/Management/components/Detail.tsx

@@ -125,7 +125,7 @@ const DetailModal: React.FC<ProjectModalProps> = ({
             form={form}
             schema={schema}
             onMount={onMount}
-            readOnly={type === ModalType.PREVIEW ? true : null}
+            readOnly={type === ModalType.PREVIEW ? true : false}
           />
         )}
       </TabPane>