Skip to content

Commit

Permalink
Added a way to support a remove observer when _id is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaragao committed Dec 15, 2021
1 parent 8796ef6 commit 3e64a87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Package.describe({
name: 'aldeed:tabular',
summary: 'Datatables for large or small datasets in Meteor',
version: '2.1.1',
git: 'https://github.com/aldeed/meteor-tabular.git'
version: '2.1.2',
git: 'https://github.com/Meteor-Community-Packages/meteor-tabular.git'
});

Npm.depends({
Expand Down
2 changes: 1 addition & 1 deletion server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Meteor.publish('tabular_getInfo', function (tableName, selector, sort, skip, lim
removed: function (id) {
//console.log('REMOVED');
// _.findWhere is used to support Mongo ObjectIDs
filteredRecordIds = _.without(filteredRecordIds, _.findWhere(filteredRecordIds, id));
filteredRecordIds = typeof id === "string" ? filteredRecordIds = _.without(filteredRecordIds, id) : filteredRecordIds = _.without(filteredRecordIds, _.findWhere(filteredRecordIds, id));
updateRecords();
}
});
Expand Down

0 comments on commit 3e64a87

Please sign in to comment.