@@ -238,16 +238,6 @@ class Blocks extends React.Component {
238
238
this . ScratchBlocks . hideChaff ( ) ;
239
239
}
240
240
241
- // Only rerender the toolbox when the blocks are visible and the xml is
242
- // different from the previously rendered toolbox xml.
243
- // Do not check against prevProps.toolboxXML because that may not have been rendered.
244
- if (
245
- this . props . isVisible &&
246
- this . props . toolboxXML !== this . _renderedToolboxXML
247
- ) {
248
- this . requestToolboxUpdate ( ) ;
249
- }
250
-
251
241
if ( this . props . isVisible === prevProps . isVisible ) {
252
242
if ( this . props . stageSize !== prevProps . stageSize ) {
253
243
// force workspace to redraw for the new stage size
@@ -269,7 +259,6 @@ class Blocks extends React.Component {
269
259
this . setLocale ( ) ;
270
260
} else {
271
261
this . props . vm . refreshWorkspace ( ) ;
272
- this . requestToolboxUpdate ( ) ;
273
262
}
274
263
275
264
window . dispatchEvent ( new Event ( "resize" ) ) ;
@@ -298,7 +287,6 @@ class Blocks extends React.Component {
298
287
. then ( ( ) => {
299
288
this . workspace . getFlyout ( ) . setRecyclingEnabled ( false ) ;
300
289
this . props . vm . refreshWorkspace ( ) ;
301
- this . requestToolboxUpdate ( ) ;
302
290
this . withToolboxUpdates ( ( ) => {
303
291
this . workspace . getFlyout ( ) . setRecyclingEnabled ( true ) ;
304
292
} ) ;
@@ -744,7 +732,6 @@ class Blocks extends React.Component {
744
732
)
745
733
. then ( ( ) => {
746
734
this . props . vm . refreshWorkspace ( ) ;
747
- this . updateToolbox ( ) ; // To show new variables/custom blocks
748
735
} ) ;
749
736
}
750
737
render ( ) {
0 commit comments