Skip to content

Commit 6a804cc

Browse files
Vikram KaltaVikram Kalta
authored andcommitted
fix: entry parsing issue
1 parent 84b9800 commit 6a804cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Contentstack/QueryResult.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ - (NSInteger)totalCount {
6969
// if condition is fix for value of "entries" key ie.array inside array in response JSON
7070
if (objectsArray.firstObject && [objectsArray.firstObject isKindOfClass:[NSDictionary class]]) {
7171
[objectsArray enumerateObjectsUsingBlock:^(NSDictionary *obj, NSUInteger idx, BOOL * _Nonnull stop) {
72-
Entry *formEntry = [self.taxonomy entry];
72+
Entry *formEntry = [self.contentType entry];
73+
if (formEntry == NULL) {
74+
formEntry = [self.taxonomy entry];
75+
}
7376
[formEntry configureWithDictionary:obj];
7477
[entryObjects addObject:formEntry];
7578
}];

0 commit comments

Comments
 (0)