diff --git a/src/ListJsonTable.php b/src/ListJsonTable.php index 29617a4..241a095 100644 --- a/src/ListJsonTable.php +++ b/src/ListJsonTable.php @@ -32,7 +32,6 @@ class ListJsonTable $this->json = $json; $this->data = json_decode($this->json, true); $this->baseUrl = $this->data['meta']['baseUrl'] ?? ''; - $this->setActions(); } public function beginTable(): void @@ -153,8 +152,9 @@ class ListJsonTable return $actions; } - public function create() + public function create(): void { + $this->setActions(); $this->beginTable(); $this->createThead(); $this->createTbody();