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