UI: Modify RunOptions page to correctly display IPs in manual run option

This commit is contained in:
Shreya Malviya 2022-08-04 12:49:47 +05:30
parent 860eb1b65c
commit e2702ffacb
1 changed files with 1 additions and 2 deletions

View File

@ -23,8 +23,7 @@ function RunOptions(props) {
if (initialized === false) {
authComponent.authFetch(IP_ADDRESSES_URL)
.then(res => res.json())
.then(res => {
let ipAddresses = res.ip_addresses;
.then(ipAddresses => {
setIps(ipAddresses);
setInitialized(true);
});