Skip to content

Commit

Permalink
fix(selection.js): getSelectedRows will work on primitive data types.
Browse files Browse the repository at this point in the history
Ensuring that the presence of $$hashKey is only needed for non-objects.

fix #6704
  • Loading branch information
Portugal, Marcelo authored and mportuga committed Apr 29, 2018
1 parent 9718d8b commit 39a5439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/selection/js/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
return service.getSelectedRows(grid).map(function (gridRow) {
return gridRow.entity;
}).filter(function (entity) {
return entity.hasOwnProperty('$$hashKey');
return entity.hasOwnProperty('$$hashKey') || !angular.isObject(entity);
});
},
/**
Expand Down

0 comments on commit 39a5439

Please sign in to comment.