Fixed #928: Custom root name not reflected in path of navigation bar
This commit is contained in:
parent
f6152c2103
commit
854a407da1
|
@ -3,9 +3,14 @@
|
|||
https://github.com/josdejong/jsoneditor
|
||||
|
||||
|
||||
## not yet published, version 8.6.2
|
||||
|
||||
# Fixed #928: Custom root name not reflected in path of navigation bar.
|
||||
|
||||
|
||||
## 2020-02-17, version 8.6.1
|
||||
|
||||
- Fix #908: editor throwing an exception when switching from `'preview'`
|
||||
- Fixed #908: editor throwing an exception when switching from `'preview'`
|
||||
to `'code'` mode.
|
||||
|
||||
|
||||
|
|
|
@ -1211,7 +1211,7 @@ treemode._updateTreePath = function (pathNodes) {
|
|||
function getName (node) {
|
||||
return node.parent
|
||||
? ((node.parent.type === 'array') ? node.index : node.field)
|
||||
: node.type
|
||||
: (node.field || node.type)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue