Skip to content

Commit 86c0724

Browse files
authored
Merge pull request #809 from transformerlab/fix/healthz-check-app-init
Fix healthz check app init
2 parents 46d2ead + c748e45 commit 86c0724

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/renderer/components/Connect/LoginModal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ export default function LoginModal({
106106
const currentPath = window.location.href;
107107
window.TransformerLab.API_URL = currentPath;
108108
console.log('Connecting to: ', window.TransformerLab.API_URL);
109-
setServer(window.TransformerLab.API_URL);
109+
// Call checkServer to verify the server is healthy before connecting
110+
checkServer();
110111
}
111112
}, []);
112113

0 commit comments

Comments
 (0)