Skip to content

Commit

Permalink
Minor optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-dimitru committed Jun 14, 2022
1 parent 722b269 commit 89fef34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client/fileUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -110,7 +110,7 @@ Template.afFileUpload.helpers({
},
inputAtts(formContext) {
const { atts } = formContext;
if (!atts) return;
if (!atts) return {};
delete atts.insertConfig;
return atts;
}
Expand Down

0 comments on commit 89fef34

Please sign in to comment.