diff --git a/lib/client/fileUpload.js b/lib/client/fileUpload.js index 4df2d35..ba655bf 100644 --- a/lib/client/fileUpload.js +++ b/lib/client/fileUpload.js @@ -83,7 +83,7 @@ Template.afFileUpload.helpers({ const { accept } = instance; // here we can check for upload template configs, that have been added after 2.1.4 and return either - // an object with "config" merged with "currentUpload" to stay backwards compatible as popssible + // an object with "config" merged with "currentUpload" to stay backwards compatible as possible if (accept) { const config = { config: { accept } }; return Object.assign({}, config, currentUpload); @@ -110,7 +110,7 @@ Template.afFileUpload.helpers({ }, inputAtts(formContext) { const { atts } = formContext; - if (!atts) return; + if (!atts) return {}; delete atts.insertConfig; return atts; }