Working server list add

This commit is contained in:
2026-08-18 19:02:07 +02:00
parent bb8994bb7e
commit bc189ba79f
7 changed files with 62 additions and 17 deletions
+7 -7
View File
@@ -40,13 +40,13 @@ export default function ServerList({
return;
}
appRef.current
.connectToServer(hostname, isSecure)
.then(
() =>
appRef.current?.serverList &&
saveServerList(appRef.current?.serverList),
);
appRef.current.connectToServer(hostname, isSecure).then(() => {
if (!appRef.current) return;
appRef.current.forceRender();
saveServerList(appRef.current.serverList);
});
}}
/>
</aside>