fix case where trigger fields could be undefined

This commit is contained in:
Peter Clement 2024-01-26 12:10:46 +00:00
parent 58fedd10f5
commit 84b2a36fda
1 changed files with 2 additions and 1 deletions

View File

@ -157,6 +157,7 @@
let bindings = []
let loopBlockCount = 0
const addBinding = (name, value, icon, idx, isLoopBlock, bindingName) => {
if (!name) return
const runtimeBinding = determineRuntimeBinding(name, idx, isLoopBlock)
const categoryName = determineCategoryName(idx, isLoopBlock, bindingName)
@ -291,7 +292,7 @@
loopBlockCount++
continue
}
console.log(schema)
Object.entries(schema).forEach(([name, value]) =>
addBinding(name, value, icon, idx, isLoopBlock, bindingName)
)