You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError: templateInstance.collection.findOne is not a function #8
When using fetch, it assigns templateInstance.collection to a typical collection fetch [ {}, {}, ...]
In reality, the package is looking for a cursor to do a findOne on the changed document's collection.
// line 1405 rubaxa_sortable.js
var startOrder = templateInstance.collection.findOne(itemId)[orderField];
//
Could have sworn that fetch() has worked in the past, who knows though. The package got moved and isn't actively maintained, so not sure if any behavior was changed before the move.
Activity
dylanmcgowan commentedon Apr 6, 2016
I'm also getting this error... Would love a fix
mikepaszkiewicz commentedon Apr 6, 2016
@jdmswong @dylanmcgowan Try removing the .fetch() - solved the problem for me.
When using fetch, it assigns templateInstance.collection to a typical collection fetch [ {}, {}, ...]
In reality, the package is looking for a cursor to do a findOne on the changed document's collection.
Could have sworn that fetch() has worked in the past, who knows though. The package got moved and isn't actively maintained, so not sure if any behavior was changed before the move.