Kaynağa Gözat

fix: drawer not setCurrentRow null

chenshuai2144 4 yıl önce
ebeveyn
işleme
75161358a5
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  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 || {}}