Skip to content

Commit 39a5439

Browse files
Portugal, Marcelomportuga
Portugal, Marcelo
authored andcommitted
fix(selection.js): getSelectedRows will work on primitive data types.
Ensuring that the presence of $$hashKey is only needed for non-objects. fix #6704
1 parent 9718d8b commit 39a5439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/selection/js/selection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
return service.getSelectedRows(grid).map(function (gridRow) {
293293
return gridRow.entity;
294294
}).filter(function (entity) {
295-
return entity.hasOwnProperty('$$hashKey');
295+
return entity.hasOwnProperty('$$hashKey') || !angular.isObject(entity);
296296
});
297297
},
298298
/**

0 commit comments

Comments
 (0)