mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-11-04 16:50:20 +00:00
minor bug fixes (#110)
This commit is contained in:
1 parent
f6ce25d466
commit
769d10b8d7
3 files changed
+4
-5
No files matched your search
@@ -44,7 +44,7 @@ export const ServerProvider: React.FC<ServerProviderProps> = ({
|
||||
if (withServer)
|
||||
(async () => {
|
||||
try {
|
||||
const s = await getServers()
|
||||
const s = (await getServers()) || []
|
||||
const serverData = s.map(({ id, name }) => ({ id, name }))
|
||||
setServer(serverData)
|
||||
} catch (error: any) {
|
||||
|
||||
Reference in new issue
Block a user