mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-07 22:28:01 +02:00
fix: fix dereference in file tree when no fodler is open
This commit is contained in:
@@ -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 = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user