Skip to content

Commit 430f626

Browse files
committed
Fix CollectionFS
1 parent 86ef75e commit 430f626

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/angular-meteor-meteorCollection.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ angularMeteorCollections.factory('AngularMeteorCollection', ['$q', '$meteorSubsc
3030
var deferred = $q.defer();
3131

3232
// delete $$hashkey
33-
item = angular.copy(item);
33+
if (!item instanceof File)
34+
item = angular.copy(item);
3435

3536
if (item._id) { // Performs an update if the _id property is set.
3637
var item_id = item._id; // Store the _id in temporary variable

0 commit comments

Comments
 (0)