Null safety

This commit is contained in:
Mel O'Hagan 2022-08-19 14:52:50 +01:00
parent 099aaa0fb2
commit bfaf1e61e4
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
$: {
let fields = {}
for (const [key, type] of Object.entries(block?.inputs?.fields)) {
for (const [key, type] of Object.entries(block?.inputs?.fields ?? {})) {
fields = {
...fields,
[key]: {