added id attribute to elements

This commit is contained in:
Denis Duliçi
2022-09-06 13:54:56 +03:00
parent 862b905981
commit 7832680208
54 changed files with 278 additions and 153 deletions

View File

@ -13,7 +13,7 @@ class Pin extends Component
public $pinned = false;
public $reportId = null;
public $report;
public function render(): View
{
@ -38,7 +38,7 @@ class Pin extends Component
continue;
}
if (in_array($this->reportId, $pins)) {
if (in_array($this->report->id, $pins)) {
$this->pinned = true;
break;