Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 269ca25

Browse files
committed
pluh
1 parent dc723d9 commit 269ca25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/resources/javascriptGenerator

src/resources/javascriptGenerator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ javascriptGenerator.valueToCode = function(block, name, order = 0) {
118118
javascriptGenerator.workspaceToCode = function(workspace) {
119119
javascriptGenerator.init(workspace)
120120

121-
const allBlocks = workspace.getTopBlocks(true).filter(v => !v.previousConnection);
121+
const allBlocks = workspace.getTopBlocks(true).filter(v => !v.previousConnection && !v.outputConnection);
122122

123123
// order blocks
124124
const orderedBlocks = allBlocks.sort((a, b) => b.order - a.order);

0 commit comments

Comments
 (0)