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