Fix bug with using custom endpoint

This commit is contained in:
Nathaniel Parke 2020-10-09 15:11:04 +08:00
parent 2b5e310cdc
commit a75a4d17b6
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ export default function TopBar() {
return;
}
const newCustomEndpoints = [...availableEndpoints.filter(e => e.custom), info];
setEndpoint(info.name);
setEndpoint(info.endpoint);
setCustomEndpoints(newCustomEndpoints);
}