forked from MapComplete/MapComplete
Fix: some fixes to make studio useable again, probably fixes #2139
This commit is contained in:
parent
f2fca2dad8
commit
6672fc87b4
4 changed files with 89 additions and 65 deletions
|
|
@ -159,6 +159,9 @@ export abstract class EditJsonState<T> {
|
|||
}
|
||||
|
||||
public getSchemaStartingWith(path: string[]) {
|
||||
if(path === undefined){
|
||||
return undefined
|
||||
}
|
||||
return this.schema.filter(
|
||||
(sch) =>
|
||||
!path.some((part, i) => !(sch.path.length > path.length && sch.path[i] === part))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue