diff --git a/src/components/pages/Dashboard/index.tsx b/src/components/pages/Dashboard/index.tsx index 4bd8e42..7143145 100644 --- a/src/components/pages/Dashboard/index.tsx +++ b/src/components/pages/Dashboard/index.tsx @@ -244,7 +244,9 @@ export default function Dashboard({ disableMediaPreview, exifEnabled, compress } }, ], }} - onCellClick={({ record: file }) => { + onCellClick={({ column, record: file }) => { + if (column.accessor === 'actions') return; + setSelectedFile(file); setOpen(true); }} diff --git a/src/components/pages/Folders/index.tsx b/src/components/pages/Folders/index.tsx index 396e4e5..34ae807 100644 --- a/src/components/pages/Folders/index.tsx +++ b/src/components/pages/Folders/index.tsx @@ -295,7 +295,9 @@ export default function Folders({ disableMediaPreview, exifEnabled, compress }) }, ], }} - onRowClick={(folder) => { + onCellClick={({ column, record: folder }) => { + if (column.accessor === 'actions') return; + setViewOpen(true); setActiveFolderId(folder.id); }} diff --git a/src/components/pages/Users/index.tsx b/src/components/pages/Users/index.tsx index f802fdd..e123ca0 100644 --- a/src/components/pages/Users/index.tsx +++ b/src/components/pages/Users/index.tsx @@ -218,7 +218,9 @@ export default function Users() { }, ], }} - onRowClick={(user) => { + onCellClick={({ column, record: user }) => { + if (column.accessor === 'actions') return; + setSelectedUser(user); setEditOpen(true); }}