Skip to content

Commit 89fef34

Browse files
committed
Minor optimizations
1 parent 722b269 commit 89fef34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/client/fileUpload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Template.afFileUpload.helpers({
8383
const { accept } = instance;
8484

8585
// here we can check for upload template configs, that have been added after 2.1.4 and return either
86-
// an object with "config" merged with "currentUpload" to stay backwards compatible as popssible
86+
// an object with "config" merged with "currentUpload" to stay backwards compatible as possible
8787
if (accept) {
8888
const config = { config: { accept } };
8989
return Object.assign({}, config, currentUpload);
@@ -110,7 +110,7 @@ Template.afFileUpload.helpers({
110110
},
111111
inputAtts(formContext) {
112112
const { atts } = formContext;
113-
if (!atts) return;
113+
if (!atts) return {};
114114
delete atts.insertConfig;
115115
return atts;
116116
}

0 commit comments

Comments
 (0)