Skip to content

Commit

Permalink
Fixes #49
Browse files Browse the repository at this point in the history
Co-authored-by: Gerard Domènech <108338080+gdomenech98@users.noreply.github.com>
  • Loading branch information
mikecmart and gdomenech98 committed Feb 7, 2024
1 parent 776047a commit 2d57387
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/protoflow/src/FlowBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ const FlowsBase = ({
var value: any = initialNodeData[key]
var keyName = `prop-${key}`

if (typeof value == "string") {
if (typeof value == "string" && key != "children") {
value = '"' + value + '"'
} else if (typeof value == "object") {
value = "{" + JSON.stringify(value) + "}"
Expand All @@ -762,7 +762,6 @@ const FlowsBase = ({
}, {
name: nodeName
})

var newNodesData = { ...nodeData, [nodeId]: addedNodeData }
var customNode = _customComponents.find((n: any) => n.id == nodeName)
if (customNode) { //Check if node has mask
Expand Down

0 comments on commit 2d57387

Please sign in to comment.