forked from p15670423/monkey
UI: Get IP addresses from /api/island/ip-addresses instead of /api in AWSRunOptions.js
This commit is contained in:
parent
2e05987e7e
commit
3f14b96b71
|
@ -32,11 +32,11 @@ const getContents = (props) => {
|
|||
}, []);
|
||||
|
||||
function getIps() {
|
||||
authComponent.authFetch('/api')
|
||||
authComponent.authFetch('/api/island/ip-addresses')
|
||||
.then(res => res.json())
|
||||
.then(res => {
|
||||
setAllIPs(res['ip_addresses']);
|
||||
setSelectedIp(res['ip_addresses'][0]);
|
||||
.then(ip_addresses => {
|
||||
setAllIPs(ip_addresses);
|
||||
setSelectedIp(ip_addresses[0]);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue