Fix second report (regression from 2cc31b3194) (#4863)
				
					
				
			This commit is contained in:
		
							parent
							
								
									dfd9eed84c
								
							
						
					
					
						commit
						f551b2ca7a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -28,7 +28,7 @@ export default function reports(state = initialState, action) {
 | 
				
			||||||
      if (state.getIn(['new', 'account_id']) !== action.account.get('id')) {
 | 
					      if (state.getIn(['new', 'account_id']) !== action.account.get('id')) {
 | 
				
			||||||
        map.setIn(['new', 'status_ids'], action.status ? ImmutableSet([action.status.getIn(['reblog', 'id'], action.status.get('id'))]) : ImmutableSet());
 | 
					        map.setIn(['new', 'status_ids'], action.status ? ImmutableSet([action.status.getIn(['reblog', 'id'], action.status.get('id'))]) : ImmutableSet());
 | 
				
			||||||
        map.setIn(['new', 'comment'], '');
 | 
					        map.setIn(['new', 'comment'], '');
 | 
				
			||||||
      } else {
 | 
					      } else if (action.status) {
 | 
				
			||||||
        map.updateIn(['new', 'status_ids'], ImmutableSet(), set => set.add(action.status.getIn(['reblog', 'id'], action.status.get('id'))));
 | 
					        map.updateIn(['new', 'status_ids'], ImmutableSet(), set => set.add(action.status.getIn(['reblog', 'id'], action.status.get('id'))));
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue