fix: fix dereference in file tree when no fodler is open

This commit is contained in:
tdurieux
2021-09-12 09:22:45 +02:00
parent b5c3c41386
commit fe825ad45a

View File

@@ -194,11 +194,13 @@ angular
$scope.opens = {};
let accumulatedPath = "";
$routeParams.path.split("/").forEach((f) => {
$scope.opens[accumulatedPath + "/" + f] = true;
accumulatedPath = accumulatedPath + "/" + f;
});
if ($routeParams.path) {
let accumulatedPath = "";
$routeParams.path.split("/").forEach((f) => {
$scope.opens[accumulatedPath + "/" + f] = true;
accumulatedPath = accumulatedPath + "/" + f;
});
}
const toArray = function (obj) {
const output = [];