Skip to content

Commit

Permalink
check if timestamps exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mokhosh committed Feb 25, 2024
1 parent 802b2d5 commit 40541c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/kanban-record.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id="{{ $record->getKey() }}"
wire:click="recordClicked('{{ $record->getKey() }}', {{ @json_encode($record) }})"
class="record bg-white dark:bg-gray-700 rounded-lg px-4 py-2 cursor-grab font-medium text-gray-600 dark:text-gray-200"
@if(now()->diffInSeconds($record->{$record::UPDATED_AT}) < 3)
@if($record->timestamps && now()->diffInSeconds($record->{$record::UPDATED_AT}) < 3)
x-data
x-init="
$el.classList.add('animate-pulse-twice', 'bg-primary-100', 'dark:bg-primary-800')
Expand Down

0 comments on commit 40541c9

Please sign in to comment.