supress pocketbase auto cancellation error

This commit is contained in:
Henry Dollman
2025-01-31 17:16:21 -05:00
parent 0b4742d064
commit 0759a3607c

View File

@@ -43,6 +43,7 @@ const verifyAuth = () => {
}
export const updateSystemList = async () => {
try {
const records = await pb
.collection<SystemRecord>("systems")
.getFullList({ sort: "+name", fields: "id,name,host,info,status" })
@@ -51,6 +52,12 @@ export const updateSystemList = async () => {
} else {
verifyAuth()
}
} catch (err) {
// @ts-ignore supress pocketbase auto cancellation error
if (err.isAbort) {
return
}
}
}
export const updateAlerts = () => {