Browse Source

Refactor comments, to array

imwald
Nuša Pukšič 3 months ago
parent
commit
fab9215d2c
  1. 2
      src/Twig/Components/Organisms/Comments.php

2
src/Twig/Components/Organisms/Comments.php

@ -60,7 +60,7 @@ final class Comments @@ -60,7 +60,7 @@ final class Comments
#[LiveAction]
public function loadComments(#[LiveArg] string $payload): array
{
$data = json_decode($payload);
$data = json_decode($payload,true);
// If your handler doesn’t compute zaps/links yet, reuse your helpers here:
$this->list = $data['comments'];

Loading…
Cancel
Save