Skip to content

Commit

Permalink
Merge pull request #440 from Meteor-Community-Packages/bugfix/remove_…
Browse files Browse the repository at this point in the history
…observer

Added a way to support a remove observer when _id is a string
  • Loading branch information
ricaragao authored Dec 17, 2021
2 parents 8796ef6 + 3e64a87 commit 999dc5d
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 999dc5d

Please sign in to comment.