Skip to content

Commit 24298d9

Browse files
authored
Merge pull request #41 from arcin/fix-json-label-formatting-issue
This commit accounts for differences in JSONTree's renderer callbacks.
2 parents faf10d8 + cb3d148 commit 24298d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/components/FilterableState.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export default function FilterableState ({
4444
} = monitorStateAction
4545

4646
const labelRenderer = filterByKeys && filterText
47-
? value => highlightMatches(filterText, value)
48-
: value => value
47+
? value => highlightMatches(filterText, value[0])
48+
: value => value[0]
4949

5050
const valueRenderer = filterByValues && filterText
5151
? (value, nodeType) => highlightMatches(filterText, value)

0 commit comments

Comments
 (0)