make sure only 200 records are returned for alert history table

This commit is contained in:
henrygd
2025-07-25 15:43:19 -04:00
parent 3ac0b185d1
commit b91c77ec92

View File

@@ -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 () => {