🔊 Add debug log for item matching issue
This commit is contained in:
@@ -268,6 +268,19 @@ const getOutgoingEdgeId =
|
|||||||
const matchedItem = block.items.find(
|
const matchedItem = block.items.find(
|
||||||
(item) => parseVariables(variables)(item.content) === reply
|
(item) => parseVariables(variables)(item.content) === reply
|
||||||
)
|
)
|
||||||
|
// TEMPORARY LOG
|
||||||
|
if (block.id === 'n62dzuz2ye73tivnjw7bnxd5') {
|
||||||
|
console.log(
|
||||||
|
'Debug Safari bug:',
|
||||||
|
JSON.stringify({
|
||||||
|
items: block.items.map((item) =>
|
||||||
|
parseVariables(variables)(item.content)
|
||||||
|
),
|
||||||
|
reply,
|
||||||
|
})
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
if (matchedItem?.outgoingEdgeId) return matchedItem.outgoingEdgeId
|
if (matchedItem?.outgoingEdgeId) return matchedItem.outgoingEdgeId
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user