Skip to content

Commit

Permalink
Merge pull request #1237 from cwisniew/fix-get-tokens-setstate
Browse files Browse the repository at this point in the history
Fix getTokens setState
  • Loading branch information
Phergus authored Feb 4, 2020
2 parents 5b5edcf + 32909ea commit ac25989
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,10 @@ private static Object getTokenList(
}
match = "setStates".equalsIgnoreCase(searchType);
// Looking for tokens that either match or don't match the states
for (Object item : states) {
for (JsonElement item : states) {
tokenList =
getTokenList(parser, FindType.STATE, item.toString(), match, tokenList, zoneRenderer);
getTokenList(
parser, FindType.STATE, item.getAsString(), match, tokenList, zoneRenderer);
}
} else if ("range".equalsIgnoreCase(searchType)) {
// We will do this as one of the last steps as it's one of the most expensive so we want to
Expand Down

0 comments on commit ac25989

Please sign in to comment.