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 8b3a777 commit c2108e2Copy full SHA for c2108e2
Classes/JSONAPI.m
@@ -112,9 +112,10 @@ - (void)inflateWithDictionary:(NSDictionary*)dictionary {
112
for (NSDictionary *resourceDictionary in value) {
113
Class c = [JSONAPIResourceModeler resourceForLinkedType:[JSONAPIResourceLinker linkedType:key]];
114
JSONAPIResource *resource = [JSONAPIResource jsonAPIResource:resourceDictionary withLinked:nil withClass:c];
115
- [resources setObject:resource forKey:resource.ID];
116
-
117
- [linkedToLinkWithLinked addObject:resource];
+ if (resource.ID != nil) {
+ [resources setObject:resource forKey:resource.ID];
+ [linkedToLinkWithLinked addObject:resource];
118
+ }
119
}
120
[creatingLinked setObject:resources forKey:key];
121
0 commit comments