From 75161358a5adb282b0381cdb41d00b1872f099d8 Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Tue, 20 Jul 2021 13:50:01 +0800 Subject: [PATCH] fix: drawer not setCurrentRow null --- src/pages/TableList/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/TableList/index.tsx b/src/pages/TableList/index.tsx index fa5063c3..7a5d0caa 100644 --- a/src/pages/TableList/index.tsx +++ b/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 || {}}