Chore: cleanup of imports and unused arguments

This commit is contained in:
Pieter Vander Vennet 2024-08-11 19:04:44 +02:00
parent cc741d8ac1
commit def7523334
4 changed files with 24 additions and 30 deletions

View file

@ -172,7 +172,8 @@ export abstract class EditJsonState<T> {
}
}
public getSchema(path: string[]): ConfigMeta[] {
public getSchema(path: (string | number)[]): ConfigMeta[] {
path = path.filter(p => typeof p === "string")
const schemas = this.schema.filter(
(sch) =>
sch !== undefined &&