Fix: some fixes to make studio useable again, probably fixes #2139

This commit is contained in:
Pieter Vander Vennet 2024-09-14 22:43:09 +02:00
parent f2fca2dad8
commit 6672fc87b4
4 changed files with 89 additions and 65 deletions

View file

@ -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))