Browse Source

Fix second report (regression from 3b81baaaaf) (#4863)

pull/4/head
Yamagishi Kazutoshi 6 years ago
committed by Eugen Rochko
parent
commit
c9d04f1c39
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/reducers/reports.js

+ 1
- 1
app/javascript/mastodon/reducers/reports.js View File

@ -28,7 +28,7 @@ export default function reports(state = initialState, action) {
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', 'comment'], '');
} else {
} else if (action.status) {
map.updateIn(['new', 'status_ids'], ImmutableSet(), set => set.add(action.status.getIn(['reblog', 'id'], action.status.get('id'))));
}
});

Loading…
Cancel
Save