We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e2ef6e + 984db7d commit ca74fd7Copy full SHA for ca74fd7
src/external/bot-skeleton/scratch/blocks/Binary/Trade Definition/trade_definition_market.js
@@ -116,7 +116,9 @@ window.Blockly.Blocks.trade_definition_market = {
116
// Reconnect self to trade definition block.
117
if (trade_definition_block) {
118
const connection = trade_definition_block.getLastConnectionInStatement('TRADE_OPTIONS');
119
- connection.connect(this.previousConnection);
+ if (connection) {
120
+ connection.connect(this.previousConnection);
121
+ }
122
} else {
123
this.dispose();
124
}
0 commit comments