mirror of
https://github.com/fankes/beszel.git
synced 2025-10-20 02:09:28 +08:00
supress pocketbase auto cancellation error
This commit is contained in:
@@ -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 = () => {
|
||||
|
Reference in New Issue
Block a user