Skip to content

Commit

Permalink
fix(kitsu-core): resolve linkedRelationships regression introduced in 5…
Browse files Browse the repository at this point in the history
  • Loading branch information
wopian committed May 21, 2020
1 parent 568eff5 commit 66095cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kitsu-core/src/linkRelationships/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function linkRelationships (data, included = []) {
}
}

if (Object.keys(relationships)?.length === 0 && relationships?.constructor === Object) {
if (Object.keys(relationships || []).length === 0 && relationships?.constructor === Object) {
delete data.relationships
}

Expand Down

0 comments on commit 66095cc

Please sign in to comment.