fix: initial deploy status

This commit is contained in:
Andras Bacsai
2022-09-29 13:23:38 +02:00
parent 90bb580e50
commit 5238c83f3f

View File

@@ -97,6 +97,11 @@
async function handleDeploySubmit(forceRebuild = false) {
if (!$isDeploymentEnabled) return;
if (!statusInterval) {
statusInterval = setInterval(async () => {
await getStatus();
}, 2000);
}
try {
const { buildId } = await post(`/applications/${id}/deploy`, {
...application,
@@ -235,7 +240,6 @@
</button>
{/if}
</div>
{/if}
</nav>
<div