forked from MapComplete/MapComplete
Add items-with-image theme
This commit is contained in:
parent
894d857cdc
commit
894c48520a
9 changed files with 163 additions and 7 deletions
|
|
@ -156,7 +156,7 @@ export class On<P, T> extends DesugaringStep<T> {
|
|||
|
||||
convert(json: T, context: ConversionContext): T {
|
||||
const key = this.key
|
||||
const value: P = json[key]
|
||||
const value: P = json?.[key]
|
||||
if (value === undefined || value === null) {
|
||||
return json
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue