Fix generateLayerOverviews

This commit is contained in:
Pieter Vander Vennet 2022-02-28 20:21:37 +01:00
parent 98c40822a2
commit 8ae679d075
2 changed files with 7 additions and 3 deletions

View file

@ -307,6 +307,10 @@ class ExpandRewrite<T> extends Conversion<T | RewritableConfigJson<T>, T[]> {
convert(json: T | RewritableConfigJson<T>, context: string): { result: T[]; errors?: string[]; warnings?: string[]; information?: string[] } {
if(json === null || json === undefined){
return {result: []}
}
if (json["rewrite"] === undefined) {
// not a rewrite