switch year

This commit is contained in:
Benjamin Takats
2022-12-15 19:28:50 +01:00
parent 1857269b38
commit 54abaccb3a

View File

@@ -14,6 +14,13 @@ class BitcoinEventTable extends Component
protected $queryString = ['year']; protected $queryString = ['year'];
public function mount()
{
if (!$this->year) {
$this->year = now()->year;
}
}
public function render() public function render()
{ {
return view('livewire.bitcoin-event.bitcoin-event-table', [ return view('livewire.bitcoin-event.bitcoin-event-table', [