Skip to content

Commit f4018c9

Browse files
authored
Merge pull request #427 from levi730/master
Change to allow use of checkbox without 'CanPinRecords'
2 parents a928621 + 92c663c commit f4018c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/livewire/datatables/checkbox.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
type="checkbox"
44
wire:model="selected"
55
value="{{ $value }}"
6-
@if (in_array($value, $this->pinnedRecords)) checked @endif
6+
@if (property_exists($this, 'pinnedRecords') && in_array($value, $this->pinnedRecords)) checked @endif
77
class="w-4 h-4 mt-1 text-blue-600 form-checkbox transition duration-150 ease-in-out"
88
/>
99
</div>

0 commit comments

Comments
 (0)