Skip to content

Commit a560d37

Browse files
authored
[Bug] Fixed chart order by (alexjustesen#1206)
1 parent 3122ef8 commit a560d37

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/Filament/Widgets/RecentJitterChartWidget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function getData(): array
4848
->when($this->filter == 'month', function ($query) {
4949
$query->where('created_at', '>=', now()->subMonth());
5050
})
51-
->latest()
51+
->orderBy('created_at')
5252
->get();
5353

5454
return [

app/Filament/Widgets/RecentPingChartWidget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function getData(): array
4848
->when($this->filter == 'month', function ($query) {
4949
$query->where('created_at', '>=', now()->subMonth());
5050
})
51-
->latest()
51+
->orderBy('created_at')
5252
->get();
5353

5454
return [

app/Filament/Widgets/RecentSpeedChartWidget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function getData(): array
4848
->when($this->filter == 'month', function ($query) {
4949
$query->where('created_at', '>=', now()->subMonth());
5050
})
51-
->latest()
51+
->orderBy('created_at')
5252
->get();
5353

5454
return [

0 commit comments

Comments
 (0)