Skip to content

Commit 2d56bd8

Browse files
committed
Fix bug null attributes were detected as relationships
1 parent 4620eca commit 2d56bd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api/services/JsonApiService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var depthOf = function(object) {
1717
for (key in object) {
1818
if (!object.hasOwnProperty(key)) continue;
1919

20-
if (typeof object[key] == 'object') {
20+
if (_.isObjectLike(object[key])) {
2121
var depth = depthOf(object[key]) + 1;
2222
level = Math.max(depth, level);
2323
}

0 commit comments

Comments
 (0)