Skip to content

Commit

Permalink
fix fallback assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopolani committed Aug 26, 2023
1 parent a9d0a4a commit 3157486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Widgets/PlausibleWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function getData(): array
*/
protected function getTimeseries(): array
{
$this->filter = Config::get('filament-plausible-widget.periods.default');
$this->filter ??= Config::get('filament-plausible-widget.periods.default');

return (new PlausibleClient())->timeseries($this->filter);
}
Expand Down

0 comments on commit 3157486

Please sign in to comment.