fix fetch resource

This commit is contained in:
2024-12-20 19:34:35 +02:00
parent 9fd224cccf
commit 995f29a8f1
4 changed files with 13 additions and 3 deletions

View File

@@ -138,6 +138,16 @@ export const useFetchResources = () => {
},
}));
}
if(res?.status === 'DOWNLOADED'){
const url = `${getBaseApiReact()}/arbitrary/resource/status/${service}/${name}/${identifier}?build=true`;
const resCall = await fetch(url, {
method: "GET",
headers: {
"Content-Type": "application/json",
},
});
res = await resCall.json();
}
}
callFunction()
intervalId.current = setInterval(async () => {