We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c1b806 commit b2dd3edCopy full SHA for b2dd3ed
src/containers/blocks.jsx
@@ -340,9 +340,9 @@ class Blocks extends React.Component {
340
const targetSounds = target.getSounds();
341
const dynamicBlocksXML = this.props.vm.runtime.getBlocksXML();
342
return makeToolboxXML(target.isStage, target.id, dynamicBlocksXML,
343
- targetCostumes[0].name,
344
- stageCostumes[0].name,
345
- targetSounds.length > 0 ? targetSounds[0].name : ''
+ targetCostumes[targetCostumes.length - 1].name,
+ stageCostumes[stageCostumes.length - 1].name,
+ targetSounds.length > 0 ? targetSounds[targetSounds.length - 1].name : ''
346
);
347
} catch {
348
return null;
0 commit comments