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