Skip to content

Commit a176e5a

Browse files
committed
Fix actions on DataView
1 parent dcad45e commit a176e5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataView/DataView.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ public function to_array(): array {
548548
'view' => $this->view(),
549549
'fields' => $this->directory_fields_for_json(),
550550
'data' => $this->get_data(),
551-
'actions' => $this->actions ? $this->actions->to_array() : [],
551+
'actions' => array_values( $this->actions ? $this->actions->to_array() : [] ),
552552
];
553553
}
554554

0 commit comments

Comments
 (0)