fix for root element
This commit is contained in:
parent
ea7d962a17
commit
0a1a258e24
1 changed files with 4 additions and 0 deletions
|
@ -62,6 +62,10 @@ const uncollapse = (element) => {
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
const deepestNodeOpened = (path, options) => {
|
const deepestNodeOpened = (path, options) => {
|
||||||
|
if (path[0] === "") {
|
||||||
|
return options[0].parentNode.parentNode;
|
||||||
|
}
|
||||||
|
|
||||||
// Iterate over possible options
|
// Iterate over possible options
|
||||||
for (let i = 0; i < options.length; ++i) {
|
for (let i = 0; i < options.length; ++i) {
|
||||||
// If the directory and the current path match
|
// If the directory and the current path match
|
||||||
|
|
Loading…
Reference in a new issue