Skip to content
Snippets Groups Projects
Unverified Commit 7c5cecb6 authored by Tim Mickel's avatar Tim Mickel
Browse files

Return the library item object

parent 14afd851
No related branches found
No related tags found
No related merge requests found
......@@ -32,16 +32,13 @@ class SpriteLibrary extends React.Component {
this.props.vm.addSprite2(spriteData);
}
render () {
let libraryData = [];
Object.keys(this.state.spriteData).map((libraryKey) => {
let libraryData = Object.keys(this.state.spriteData).map((libraryKey) => {
let libraryItem = this.state.spriteData[libraryKey];
libraryData.push(
{
name: libraryItem.objName,
md5: libraryItem.costumes[0].baseLayerMD5,
json: libraryKey
}
);
return {
name: libraryItem.objName,
md5: libraryItem.costumes[0].baseLayerMD5,
json: libraryKey
};
});
return <LibaryComponent
title="Sprite Library"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment