Skip to content
Snippets Groups Projects
Unverified Commit 9cdbb2c4 authored by Jed Fox's avatar Jed Fox
Browse files

Fix error about passing a null value to the server URL input

parent 89128faf
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ export default function ConfigServer() {
useEffect(() => {
async function run() {
let url = await send('get-server-url');
setUrl(url && url.indexOf('not-configured') ? '' : url);
setUrl(!url || url.indexOf('not-configured') ? '' : url);
setCurrentUrl(url);
}
run();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment