wrong obj

This commit is contained in:
jasinco 2025-06-10 18:50:48 +08:00
parent 91b2fdf805
commit 04b0aee2e1

View file

@ -36,7 +36,7 @@ const Panel = () => {
if ((val.status == 401 || val.status == 400) && await val.text() == "missing or malformvald JWT") { if ((val.status == 401 || val.status == 400) && await val.text() == "missing or malformvald JWT") {
window.location.href = "/admin/login" window.location.href = "/admin/login"
} else if (val.status == 200) { } else if (val.status == 200) {
setPosts((await val.json() as Array<Object>).map(post => POST.parse(post)).filter(e => posts.findIndex(x => x.id == e.id) == -1)) setPosts((await val.json() as Array<Object>).map(post => POST.parse(post)).filter(e => verifyli.findIndex(x => x.id == e.id) == -1))
} }
}).finally(() => { setLoading(false) }) }).finally(() => { setLoading(false) })
} }