fix: click on selected row should do nothing

This commit is contained in:
2025-09-17 23:21:33 +00:00
parent f66464ce7b
commit a31a0f7bca

View File

@@ -216,9 +216,12 @@ export function FileTableContent({ path }: { path: string }) {
})
const selectRow = (row: Row<DirectoryItem>) => {
console.log("row.getIsSelected()", row.getIsSelected())
if (!row.getIsSelected()) {
table.toggleAllPageRowsSelected(false)
row.toggleSelected(true)
}
}
if (!directory) {
return null