Skip to content

Commit 7550b7d

Browse files
author
Ricardo Pramana Suranta
committed
Merge branch 'develop' for circular reference fix on JSONAPIResource
2 parents 19adc80 + 0388c17 commit 7550b7d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Classes/JSONAPI.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ - (void)inflateWithDictionary:(NSDictionary*)dictionary {
134134
_includedResources = includedResources;
135135

136136
// Link included with included
137-
// TODO: Need to look into / stop circular references
138137
for (NSDictionary *typeIncluded in _includedResources.allValues) {
139138
for (JSONAPIResource *resource in typeIncluded.allValues) {
140139
[resource linkWithIncluded:self];

Classes/JSONAPIResource.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ - (void)linkWithIncluded:(JSONAPI*)jsonAPI {
172172

173173
JSONAPIResource *linkedResource = included[linkType][linksToId];
174174
if (linkedResource != nil) {
175-
[linkedResources addObject:linkedResources];
175+
[linkedResources addObject:linkedResource];
176176
}
177177
}
178178
}

0 commit comments

Comments
 (0)