We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84b9800 commit 6a804ccCopy full SHA for 6a804cc
Contentstack/QueryResult.m
@@ -69,7 +69,10 @@ - (NSInteger)totalCount {
69
// if condition is fix for value of "entries" key ie.array inside array in response JSON
70
if (objectsArray.firstObject && [objectsArray.firstObject isKindOfClass:[NSDictionary class]]) {
71
[objectsArray enumerateObjectsUsingBlock:^(NSDictionary *obj, NSUInteger idx, BOOL * _Nonnull stop) {
72
- Entry *formEntry = [self.taxonomy entry];
+ Entry *formEntry = [self.contentType entry];
73
+ if (formEntry == NULL) {
74
+ formEntry = [self.taxonomy entry];
75
+ }
76
[formEntry configureWithDictionary:obj];
77
[entryObjects addObject:formEntry];
78
}];
0 commit comments