Skip to content

Commit

Permalink
fix install error
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Jul 12, 2024
1 parent fc8241a commit 8baa6e9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/src/utils/duplicateScenes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function duplicateScenes(newScenes: FrameScene[]): FrameScene[] {
...scene,
id,
nodes: scene.nodes.map((node) => {
if (node.type === 'code' || node.type === 'event') {
if (node.type === 'code' || node.type === 'state' || node.type === 'event' || node.type === 'app') {
return node
} else if (node.type === 'dispatch') {
const data = node.data as DispatchNodeData
Expand All @@ -38,9 +38,6 @@ export function duplicateScenes(newScenes: FrameScene[]): FrameScene[] {
}
}
return { ...node, data: { ...data, config: newConfig } }
} else if (node.type === 'app') {
// TODO for later. No built in app currently uses scene fields
return node
} else if (node.type === 'source') {
try {
const data = node.data as AppNodeData
Expand Down

0 comments on commit 8baa6e9

Please sign in to comment.