Update table block to work with views

This commit is contained in:
Andrew Kingston 2023-08-22 13:39:58 +01:00
parent e77644ce11
commit df676bbe9e
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@
$: editTitle = getEditTitle(detailsFormBlockId, primaryDisplay)
$: normalFields = getNormalFields(schema)
$: rowClickActions =
clickBehaviour === "actions" || dataSource?.type !== "table"
clickBehaviour === "actions" ||
(dataSource?.type !== "table" && dataSource?.type !== "viewV2")
? onClick
: [
{