add a todo

This commit is contained in:
Loren Norman 2025-08-01 16:33:51 -04:00
parent e363fc4090
commit 2723b4fbc1

View file

@ -35,9 +35,10 @@ export default {
value = generator.valueToCode(block, 'VALUE', 0)
const
// TODO: this is suspect, try valueToCode() || null, above
defaultedValue = value
? JSON.parse(value)
// TODO: is this !== 0 check superfluous?
// @ts-ignore
: (value !== 0 && value !== null) && null,
blockPayload = JSON.stringify({
setVariable: {