Skip to content

Commit aaa9725

Browse files
committed
fix: error handling when no attached files
1 parent 82994c6 commit aaa9725

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

custom/VisionAction.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,9 @@ async function runAiAction({
546546
if (actionType !== 'analyze_no_images' || !props.meta.isFieldsForAnalizeFromImages) {
547547
responseFlag.value[index] = true;
548548
}
549+
if (index !== -1) {
550+
jobsIds.splice(jobsIds.findIndex(j => j.jobId === jobId), 1);
551+
}
549552
adminforth.alert({
550553
message: `Generation action "${actionType.replace('_', ' ')}" failed for record: ${recordId}. Error: ${jobResponse.job?.error || 'Unknown error'}`,
551554
variant: 'danger',

0 commit comments

Comments
 (0)