Skip to content

Commit 3d99ef5

Browse files
committed
Compiled.
1 parent f36a5a3 commit 3d99ef5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

dist/angular-data.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3516,11 +3516,12 @@ function loadRelations(resourceName, instance, relations, options) {
35163516
}
35173517

35183518
if (DSUtils.isArray(instance)) {
3519-
var instances = [];
3520-
angular.forEach(instance, function(object) {
3521-
instances.push(DS.get(resourceName, object));
3519+
instance = instance.map(function(object) {
3520+
if (DSUtils.isString(object) || DSUtils.isNumber(object)) {
3521+
object = DS.get(resourceName, object);
3522+
}
3523+
return object;
35223524
});
3523-
instance = instances;
35243525
}
35253526

35263527
if (!definition) {

0 commit comments

Comments
 (0)