Skip to content

Commit 66095cc

Browse files
committed
fix(kitsu-core): resolve linkedRelationships regression introduced in 568eff5
1 parent 568eff5 commit 66095cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/kitsu-core/src/linkRelationships

packages/kitsu-core/src/linkRelationships/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export function linkRelationships (data, included = []) {
109109
}
110110
}
111111

112-
if (Object.keys(relationships)?.length === 0 && relationships?.constructor === Object) {
112+
if (Object.keys(relationships || []).length === 0 && relationships?.constructor === Object) {
113113
delete data.relationships
114114
}
115115

0 commit comments

Comments
 (0)