Skip to content

Commit a345171

Browse files
committed
fix: fix image generation modal
1 parent cc666f9 commit a345171

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom/imageGenerator.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ async function generateImages() {
370370
const jobId = resp.jobId;
371371
let jobStatus = null;
372372
let jobResponse = null;
373-
while (jobStatus === 'in_progress') {
373+
do {
374374
jobResponse = await callAdminForthApi({
375375
path: `/plugin/${props.meta.pluginInstanceId}/get-image-generation-job-status`,
376376
method: 'POST',
@@ -388,7 +388,7 @@ async function generateImages() {
388388
error = jobResponse?.job?.error || $t('Image generation job timeout');
389389
}
390390
await new Promise((resolve) => setTimeout(resolve, 2000));
391-
}
391+
} while (jobStatus === 'in_progress')
392392
393393
if (error) {
394394
adminforth.alert({

0 commit comments

Comments
 (0)