Check that costume exists before accessing

This commit is contained in:
DD Liu committed 2018-05-02 08:49:57 -04:00
1 parent 9d3c95812e
commit 8ea5cdce07
1 file changed
+1 -1
+1 -1
View File
@@ -73,7 +73,7 @@ const mapStateToProps = (state, {selectedCostumeIndex}) => {
name: costume && costume.name,
rotationCenterX: costume && costume.rotationCenterX,
rotationCenterY: costume && costume.rotationCenterY,
imageFormat: costume.dataFormat,
imageFormat: costume && costume.dataFormat,
imageId: editingTarget && `${editingTarget}${costume.skinId}`,
vm: state.vm
};