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 cef2c7b commit b113c52Copy full SHA for b113c52
index.ts
@@ -428,7 +428,9 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
428
}
429
const images = await Promise.all(
430
(new Array(this.options.generateImages[fieldName].countToGenerate)).fill(0).map(async () => {
431
-
+ if (this.options.attachFiles && attachmentFiles.length === 0) {
432
+ return null;
433
+ }
434
if (STUB_MODE) {
435
await new Promise((resolve) => setTimeout(resolve, 2000));
436
return `https://picsum.photos/200/300?random=${Math.floor(Math.random() * 1000)}`;
0 commit comments