UI: Get IP addresses from /api/island/ip-addresses instead of /api in AWSRunOptions.js

This commit is contained in:
Shreya Malviya 2022-08-05 13:13:51 +05:30
parent 2e05987e7e
commit 3f14b96b71
1 changed files with 4 additions and 4 deletions

View File

@ -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]);
});
}