Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Classes/Stacks/Desk/HSDeskGear.m
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,11 @@ - (void)fetchKBForSection:(HSKBItem*)section success:(void (^)(NSMutableArray* k
NSArray* supportArticles = [articles filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictionary *bindings) {

NSDictionary* article = (NSDictionary*)evaluatedObject;
return [[article objectForKey:@"in_support_center"] boolValue];

id returnval = [article objectForKey:@"in_support_center"];
if ([returnval isKindOfClass:[NSNull class]]) {
return NO;
}
return [returnval boolValue];
}]]; // show just support center articles


Expand Down