We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 520a2dc commit 10e28aeCopy full SHA for 10e28ae
index.ts
@@ -358,7 +358,7 @@ export default class UploadPlugin extends AdminForthPlugin {
358
this.adminforth = adminforth;
359
360
if (this.options.generation) {
361
- const template = this.options.generation?.generationPrompt;
+ const template = this.options.generation?.generationPrompt || '';
362
const regex = /{{(.*?)}}/g;
363
const matches = template.match(regex);
364
if (matches) {
0 commit comments