I'm using the collection-revisions package on Meteor to display all changes made in a collection.
However, I'm having some issues to restore previous changes. I'm getting an error: Uncaught Error: Match error: Expected string, got undefined
.
I'm using the following event (similar to the documentation's example, actually):
Template.edit.events({
'click .revert': function(e, t) {
var edit;
edit = Template.parentData();
return CollectionRevisions.restore('Edits', edit._id, this.revisionId);
}
});
Any ideas on what I'm doing wrong here?