Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot call method 'update' of undefined... #106

Open
diegonc opened this issue Apr 21, 2016 · 3 comments
Open

Cannot call method 'update' of undefined... #106

diegonc opened this issue Apr 21, 2016 · 3 comments

Comments

@diegonc
Copy link

diegonc commented Apr 21, 2016

... or something like that.

Actually this:

autoform-file.coffee:40 Uncaught TypeError: Cannot read property 'update' of undefined

The problem is that when inserting a file here errors are not checked before calling update.

    collection.insert file, (err, fileObj) ->
      if typeof self.data.atts?.onAfterInsert is 'function'
        self.data.atts.onAfterInsert err, fileObj

      **fileObj.update $set: metadata: owner: Meteor.userId()**

      if err then return console.log err
      self.value.set fileObj._id
@55
Copy link

55 commented May 4, 2016

Same error here

@SeanLiangYoung
Copy link

Same error here
2016-09-08 5 23 18
2016-09-08 5 24 10

@streamspace-steve
Copy link

Same error here...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants