Browse Source

fix expand

lushdog@outlook.com 6 ngày trước cách đây
mục cha
commit
f87c4525b4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/app/components/DataTable.tsx

+ 1 - 1
src/app/components/DataTable.tsx

@@ -95,7 +95,6 @@ export default function DataTable() {
             }
           }
         )
-        console.log(options)
         setPoolOptions(options)
       }
     } catch (error) {
@@ -138,6 +137,7 @@ export default function DataTable() {
           key: `${item.id || index}`,
           ...item,
         })) as TableData[])
+        setExpandedRowKeys([])
         setPagination({
           current: current,
           pageSize: pageSize,