diff --git a/js/community/components/subjectPost/SPLikeCell.js b/js/community/components/subjectPost/SPLikeCell.js index fa26a1f..1a79794 100644 --- a/js/community/components/subjectPost/SPLikeCell.js +++ b/js/community/components/subjectPost/SPLikeCell.js @@ -41,7 +41,7 @@ export default class SPLikeCell extends React.Component { return ( <View style={[styles.avatarPannel, {left}]}> {users.map((item, i)=> { - let headStr = item.headIcon||''; + let headStr = item && item.headIcon ? item.headIcon : ''; return ( <SlicedImage key={i} style={[styles.likeAvatar, {right: space * i}]} source={{uri: headStr}}/> ); diff --git a/js/community/reducers/app/appActions.js b/js/community/reducers/app/appActions.js index e5de96d..3f154a0 100755 --- a/js/community/reducers/app/appActions.js +++ b/js/community/reducers/app/appActions.js @@ -11,6 +11,7 @@ import {Actions} from 'react-native-router-flux'; import Immutable, {Map} from 'immutable'; import AppService from '../../services/AppService'; import RouterService from '../../services/RouterService'; +import {loginThenSyncUserInfo} from '../user/userActions'; const { SET_PLATFORM,