mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 17:59: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
|
// Initial load
|
||||||
pb.collection<AlertsHistoryRecord>("alerts_history")
|
pb.collection<AlertsHistoryRecord>("alerts_history")
|
||||||
.getFullList({
|
.getList(0, 200, {
|
||||||
...pbOptions,
|
...pbOptions,
|
||||||
sort: "-created",
|
sort: "-created",
|
||||||
})
|
})
|
||||||
.then((records) => setData(records))
|
.then(({ items }) => setData(items))
|
||||||
|
|
||||||
// Subscribe to changes
|
// Subscribe to changes
|
||||||
;(async () => {
|
;(async () => {
|
||||||
|
Reference in New Issue
Block a user