Skip to content

Commit 9fcb320

Browse files
authored
Merge pull request #257 from DhanushNehru/fix-polling-status-rendering
Fix polling progress and timeout output rendering
2 parents a420712 + c0b68bd commit 9fcb320

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎src/pages/EditorComponent.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,15 @@ function EditorComponent() {
224224
const data = await response.json();
225225
if (isPending(data.status)) {
226226
if (attempt >= maxPolls) {
227-
setOutput(
228-
"The submission is still running. Please try again in a moment."
229-
);
227+
setOutput([
228+
"The submission is still running. Please try again in a moment.",
229+
]);
230230
setLoading(false);
231231
return;
232232
}
233-
setOutput(
234-
`Running... (${data.status && data.status.description ? data.status.description : "waiting"})`
235-
);
233+
setOutput([
234+
`Running... (${data.status && data.status.description ? data.status.description : "waiting"})`,
235+
]);
236236
setTimeout(() => pollForResult(attempt + 1), pollInterval);
237237
return;
238238
}

0 commit comments

Comments
 (0)