fix: stabilize admin frontend and resolve TS build errors

This commit is contained in:
Bot
2026-05-01 13:55:01 +08:00
parent 9720bc258f
commit 2da8565e47
17 changed files with 43 additions and 36 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ export const ServerProvider: React.FC<ServerProviderProps> = ({
(async () => {
try {
const s = (await getServers()) || []
const serverData = s.map(({ id, name }) => ({ id, name }))
const serverData = s.map(({ id, name }) => ({ id: id!, name }))
setServer(serverData)
} catch (error: any) {
toast("ServerProvider Error", {