fix: any instance of #342
This commit is contained in:
parent
556aafaad3
commit
40a0cce3e8
3 changed files with 9 additions and 3 deletions
|
@ -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);
|
||||
}}
|
||||
|
|
|
@ -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);
|
||||
}}
|
||||
|
|
|
@ -218,7 +218,9 @@ export default function Users() {
|
|||
},
|
||||
],
|
||||
}}
|
||||
onRowClick={(user) => {
|
||||
onCellClick={({ column, record: user }) => {
|
||||
if (column.accessor === 'actions') return;
|
||||
|
||||
setSelectedUser(user);
|
||||
setEditOpen(true);
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue