lanjianrong пре 5 година
родитељ
комит
18439a6803
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/components/EditableForm/editableFormItem.jsx

+ 1 - 1
src/components/EditableForm/editableFormItem.jsx

@@ -31,7 +31,7 @@ const EditableFormItem = ({ label, dataIndex, record, dataId, span, editCellType
   }
   const save = async e => {
     const { value = '' } = e.currentTarget
-    if (value === record) {
+    if (value === record || !value) {
       return
     }
     setVal(value)