fix: any instance of #342

This commit is contained in:
diced 2023-03-25 23:33:37 -07:00
parent 556aafaad3
commit 40a0cce3e8
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1
3 changed files with 9 additions and 3 deletions

View file

@ -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);
}}

View file

@ -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);
}}

View file

@ -218,7 +218,9 @@ export default function Users() {
},
],
}}
onRowClick={(user) => {
onCellClick={({ column, record: user }) => {
if (column.accessor === 'actions') return;
setSelectedUser(user);
setEditOpen(true);
}}