forked from MapComplete/MapComplete
Small fixes to improve local loading
This commit is contained in:
parent
9392731e46
commit
c5a6b803ec
4 changed files with 19 additions and 5 deletions
6
Utils.ts
6
Utils.ts
|
@ -442,7 +442,11 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
|
|||
*
|
||||
* The leaf objects are replaced in the object itself by the specified function
|
||||
*/
|
||||
public static WalkPath(path: string[], object: any, replaceLeaf: ((leaf: any, travelledPath: string[]) => any), travelledPath: string[] = []) {
|
||||
public static WalkPath(path: string[], object: any, replaceLeaf: ((leaf: any, travelledPath: string[]) => any), travelledPath: string[] = []) : void {
|
||||
if(object == null){
|
||||
return;
|
||||
}
|
||||
|
||||
const head = path[0]
|
||||
if (path.length === 1) {
|
||||
// We have reached the leaf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue