Authored by 于良

接口返回处理容错 review by 盖剑秋

... ... @@ -75,7 +75,7 @@ class DrawerContainer extends Component {
<Drawer
ref={(ref) => this.drawer = ref}
type="displace"
content={<SideMenu items={this.props.user.get('brands')} onPressItem={this._onPressItem}/>}
content={<SideMenu items={this.props.user.brands} onPressItem={this._onPressItem}/>}
tapToClose={true}
openDrawerOffset={0.2}
panCloseMask={0.2}
... ...
... ... @@ -111,7 +111,7 @@ export default function userReducer(state = initialState, action) {
case GET_STORED_USER_INFO:
case LOGIN_SUCCESS: {
const {account, pid, session_key, shops} = action.payload;
let brandsList = Immutable.fromJS(shops);
let brandsList = Immutable.fromJS(shops) || List();
let nextState = state.set('isFetching', false)
.set('error', null)
.setIn(['profile', 'account'], account)
... ...