Преглед изворни кода

fix: drawer not setCurrentRow null

chenshuai2144 пре 4 година
родитељ
комит
75161358a5
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/pages/TableList/index.tsx

+ 3 - 1
src/pages/TableList/index.tsx

@@ -355,7 +355,9 @@ const TableList: React.FC = () => {
         }}
         onCancel={() => {
           handleUpdateModalVisible(false);
-          setCurrentRow(undefined);
+          if (!showDetail) {
+            setCurrentRow(undefined);
+          }
         }}
         updateModalVisible={updateModalVisible}
         values={currentRow || {}}