We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc666f9 commit a345171Copy full SHA for a345171
custom/imageGenerator.vue
@@ -370,7 +370,7 @@ async function generateImages() {
370
const jobId = resp.jobId;
371
let jobStatus = null;
372
let jobResponse = null;
373
- while (jobStatus === 'in_progress') {
+ do {
374
jobResponse = await callAdminForthApi({
375
path: `/plugin/${props.meta.pluginInstanceId}/get-image-generation-job-status`,
376
method: 'POST',
@@ -388,7 +388,7 @@ async function generateImages() {
388
error = jobResponse?.job?.error || $t('Image generation job timeout');
389
}
390
await new Promise((resolve) => setTimeout(resolve, 2000));
391
- }
+ } while (jobStatus === 'in_progress')
392
393
if (error) {
394
adminforth.alert({
0 commit comments