diff --git a/packages/server/src/api/controllers/application.ts b/packages/server/src/api/controllers/application.ts index 8102254a79..d8d9d75336 100644 --- a/packages/server/src/api/controllers/application.ts +++ b/packages/server/src/api/controllers/application.ts @@ -440,13 +440,13 @@ async function creationEvents(request: BBRequest, app: App) { let creationFns: ((app: App) => Promise)[] = [] const { useTemplate, templateKey, file } = request.body - if (useTemplate) { + if (useTemplate === "true") { // from template if (templateKey && templateKey !== "undefined") { creationFns.push(a => events.app.templateImported(a, templateKey)) } // from file - else if (request.files?.templateFile) { + else if (request.files?.fileToImport) { creationFns.push(a => events.app.fileImported(a)) } // from server file path