Authored by 盖剑秋

Fix crash caused by reply image. reivewed by redding.

... ... @@ -217,12 +217,13 @@ export default class Posting extends Component {
<View style={styles.toolTopLine}/>
<View style={styles.toolBottomLine}/>
</View>
<AssertsPicker
{this.state.imageState == 0 ? null : <AssertsPicker
style={[styles.boardSelectionContainer,{height:this.state.imageState,}]}
opacityToHide={this.state.imageState}
assets={this.props.assets}
assetsSelected={this.props.assetsSelected}
/>
/>}
<View style={[styles.boardSelectionContainer,{height:this.state.boardState,}]} opacity={this.state.boardState}>
<View style={styles.boardSelectionScroll}>
... ...
... ... @@ -320,9 +320,11 @@ export default class SubjectPost extends Component {
"orderBy": 1,
};
blocks.push(textBlock);
console.log('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
console.log(this.props.assets);
if (this.props.assets.length) {
for (var i = 0; i < assets.length; i++) {
let asset = assets[i];
for (var i = 0; i < this.props.assets.length; i++) {
let asset = this.props.assets[i];
let imgBlock = {
"contentData": asset.url,
"templateKey": "image",
... ...