fix: code-block-missing-checks (#7002)

This commit is contained in:
crazywoola 2024-08-06 16:11:14 +08:00 committed by GitHub
parent 96dcf0fe8a
commit 7f18c06b0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,12 +125,14 @@ const formatItem = (
const { const {
outputs, outputs,
} = data as CodeNodeType } = data as CodeNodeType
res.vars = Object.keys(outputs).map((key) => { res.vars = outputs
? Object.keys(outputs).map((key) => {
return { return {
variable: key, variable: key,
type: outputs[key].type, type: outputs[key].type,
} }
}) })
: []
break break
} }