Null safety
This commit is contained in:
parent
099aaa0fb2
commit
bfaf1e61e4
1 changed files with 1 additions and 1 deletions
|
@ -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]: {
|
||||
|
|
Loading…
Reference in a new issue