mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-19 09:40:13 +00:00
fix: stabilize admin frontend and resolve TS build errors
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user