Fix on click actions not working when using non DS+ datasources and edit row setting is hidden but enabled

This commit is contained in:
Andrew Kingston 2023-10-18 14:21:09 +01:00
parent 70c5272ad9
commit faa70b79b6
1 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@
$: columnWhitelist = columns?.map(col => col.name)
$: schemaOverrides = getSchemaOverrides(columns)
$: handleRowClick = allowEditRows ? undefined : onRowClick
const getSchemaOverrides = columns => {
let overrides = {}
@ -61,7 +60,7 @@
showControls={false}
notifySuccess={notificationStore.actions.success}
notifyError={notificationStore.actions.error}
on:rowclick={e => handleRowClick?.({ row: e.detail })}
on:rowclick={e => onRowClick?.({ row: e.detail })}
/>
</div>