mirror of
https://github.com/fankes/beszel.git
synced 2025-10-18 17:29:28 +08:00
make sure only 200 records are returned for alert history table
This commit is contained in:
@@ -74,11 +74,11 @@ export default function AlertsHistoryDataTable() {
|
||||
}
|
||||
// Initial load
|
||||
pb.collection<AlertsHistoryRecord>("alerts_history")
|
||||
.getFullList({
|
||||
.getList(0, 200, {
|
||||
...pbOptions,
|
||||
sort: "-created",
|
||||
})
|
||||
.then((records) => setData(records))
|
||||
.then(({ items }) => setData(items))
|
||||
|
||||
// Subscribe to changes
|
||||
;(async () => {
|
||||
|
Reference in New Issue
Block a user