Skip to content

Commit

Permalink
Fixed parents parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
username0x0a committed Jan 24, 2020
1 parent f1f4fa1 commit 34c12dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TravelKit/TKPlace.m
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ - (instancetype)initFromResponse:(NSDictionary *)dictionary
// Parents
NSString *parentID = nil;
NSMutableArray *locationIDs = [NSMutableArray array];
for (NSString *parentDict in [dictionary[@"parent_ids"] parsedArray])
for (NSString *parentDict in [dictionary[@"parents"] parsedArray])
if ((parentID = [parentDict[@"id"] parsedString]))
[locationIDs addObject:parentID];
_parents = locationIDs;
Expand All @@ -171,9 +171,9 @@ - (instancetype)initFromResponse:(NSDictionary *)dictionary
[flags addObject:@"has_geometry"];

_flags = [flags array];
}
}

return self;
return self;
}

- (NSUInteger)displayableHexColor
Expand Down

0 comments on commit 34c12dc

Please sign in to comment.