Skip to content

Commit 1b14ad8

Browse files
committed
fix issue with null labels
1 parent b46ef2c commit 1b14ad8

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

js/activity.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -296,14 +296,6 @@ define(function (require) {
296296
y += 100 * turlteBlocksScale;
297297
}
298298
}
299-
/*
300-
// Collapse collapsible stacks.
301-
if (['start', 'action', 'drum', 'matrix'].indexOf(myBlock.name) !== -1 && !myBlock.trash) {
302-
if (!myBlock.collapsed) {
303-
myBlock.collapseToggle();
304-
}
305-
}
306-
*/
307299
}
308300
}
309301

js/palette.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ function PaletteModel(palette, palettes, name) {
641641
}
642642
}
643643

644-
if (['do', 'nameddo', 'namedbox', 'namedcalc', 'doArg', 'calcArg', 'nameddoArg', 'namedcalcArg'].indexOf(protoBlock.name) != -1 && label.length > 8) {
644+
if (['do', 'nameddo', 'namedbox', 'namedcalc', 'doArg', 'calcArg', 'nameddoArg', 'namedcalcArg'].indexOf(protoBlock.name) != -1 && label != null && label.length > 8) {
645645
label = label.substr(0, 7) + '...';
646646
}
647647

0 commit comments

Comments
 (0)