Skip to content

Commit

Permalink
Merge pull request #41 from arcin/fix-json-label-formatting-issue
Browse files Browse the repository at this point in the history
This commit accounts for differences in JSONTree's renderer callbacks.
  • Loading branch information
bvaughn authored Dec 10, 2018
2 parents faf10d8 + cb3d148 commit 24298d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/components/FilterableState.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export default function FilterableState ({
} = monitorStateAction

const labelRenderer = filterByKeys && filterText
? value => highlightMatches(filterText, value)
: value => value
? value => highlightMatches(filterText, value[0])
: value => value[0]

const valueRenderer = filterByValues && filterText
? (value, nodeType) => highlightMatches(filterText, value)
Expand Down

0 comments on commit 24298d9

Please sign in to comment.