Skip to content

Commit

Permalink
fix type error on undefined name
Browse files Browse the repository at this point in the history
  • Loading branch information
HaruHunab1320 committed May 21, 2024
1 parent 05fd14d commit 386d9d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/flow/core/src/lib/node/node-container.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"use client"
'use client'

import { NodeCategory, NodeSpecJSON } from '@magickml/behave-graph'
import { faEye, faEyeSlash } from '@fortawesome/free-solid-svg-icons'
Expand Down Expand Up @@ -60,7 +60,7 @@ const NodeContainer: React.FC<PropsWithChildren<NodeProps>> = ({
const NodeIcon = categoryIconMap[category]
let [backgroundColor, textColor] = colors[colorName]
if (config?.valueTypeName) {
const variableName = config.socketOutputs[0].name
const variableName = config.socketOutputs[0]?.name
innerLabel = variableName && `${label} ${variableName}`
const colorName = valueTypeColorMap[config.valueTypeName]
if (colorName) {
Expand Down

0 comments on commit 386d9d4

Please sign in to comment.