Remove useCallback for fetching logs
This commit is contained in:
parent
096318cf13
commit
25283da940
@ -334,9 +334,9 @@ export class Service {
|
||||
await this.updateProjectWithDeployer(project.id, deployer);
|
||||
}
|
||||
|
||||
for (const deployer of deployerIds) {
|
||||
log(`Creating deployment for deployer LRN ${deployer}`);
|
||||
await this.createDeploymentFromAuction(project, deployer);
|
||||
for (const deployerId of deployerIds) {
|
||||
log(`Creating deployment for deployer ${deployerId}`);
|
||||
await this.createDeploymentFromAuction(project, deployerId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ const DeploymentDetailsCard = ({
|
||||
}
|
||||
};
|
||||
|
||||
const fetchDeploymentLogs = useCallback(async () => {
|
||||
const fetchDeploymentLogs = async () => {
|
||||
let url = `${deployment.deployer.deployerApiUrl}/log/${deployment.applicationDeploymentRequestId}`;
|
||||
const res = await fetch(url, { cache: 'no-store' });
|
||||
handleOpenDialog();
|
||||
@ -99,11 +99,7 @@ const DeploymentDetailsCard = ({
|
||||
const logs = await res.text();
|
||||
setDeploymentLogs(logs);
|
||||
}
|
||||
}, [
|
||||
deployment.deployer.deployerApiUrl,
|
||||
deployment.applicationDeploymentRequestId,
|
||||
handleOpenDialog,
|
||||
]);
|
||||
};
|
||||
|
||||
const renderDeploymentStatus = useCallback(
|
||||
(className?: string) => {
|
||||
|
Loading…
Reference in New Issue
Block a user