We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 568eff5 commit 66095ccCopy full SHA for 66095cc
1 file changed
packages/kitsu-core/src/linkRelationships/index.js
@@ -109,7 +109,7 @@ export function linkRelationships (data, included = []) {
109
}
110
111
112
- if (Object.keys(relationships)?.length === 0 && relationships?.constructor === Object) {
+ if (Object.keys(relationships || []).length === 0 && relationships?.constructor === Object) {
113
delete data.relationships
114
115
0 commit comments