mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-04 20:50:07 +00:00
feat: responsive header, search boxes (#10)
This commit is contained in:
@@ -33,7 +33,8 @@ export const ServerProvider: React.FC<ServerProviderProps> = ({ children, withSe
|
||||
(async () => {
|
||||
try {
|
||||
const s = await getServers();
|
||||
setServer(s);
|
||||
const serverData = s.map(({ id, name }) => ({ id, name }));
|
||||
setServer(serverData);
|
||||
} catch (error) {
|
||||
setServer(undefined);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user