When doing this I run into the following error if I click the button more than once:
Error: There is already a collection named "jobQueue"
at JobCollection.Mongo.Collection (collection.js:226)
at JobCollectionBase [as constructor] (shared.coffee:132)
at new JobCollection (client.coffee:37)
at JobCollection (client.coffee:34)
at Blaze.TemplateInstance.<anonymous> (feature.js:110)
at blaze.js?hash=f33d3df…:3398
at Function.Template._withTemplateInstanceFunc (blaze.js?hash=f33d3df…:3744)
at fireCallbacks (blaze.js?hash=f33d3df…:3394)
at Blaze.View.<anonymous> (blaze.js?hash=f33d3df…:3474)
at fireCallbacks (blaze.js?hash=f33d3df…:2014)
As per the example I am running the following client-side code:
I have a button that submits a job
When doing this I run into the following error if I click the button more than once: