Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/examples/src/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ export const nodeFactory = (nodeName?: string): Node => ({
})

export const outputFactory = (nodeId: string) => {
const number = (Math.random() * 10000).toFixed()
const id = `Output_${number}`
const id_2 = `Output_${number + 1}`

return [
{
id: "Output_1",
id,
nodeId,
nextNodeId: null,
position: DEFAULT_OUTPUT
},
{
id: "Output_2",
id: id_2,
nodeId,
nextNodeId: null,
position: DEFAULT_OUTPUT_2
Expand Down