Skip to content

Commit

Permalink
Merge pull request #5441 from czcorpus/supp2772_b
Browse files Browse the repository at this point in the history
Improve error processing in ref detail
  • Loading branch information
tomachalek authored Nov 21, 2022
2 parents e8642ce + 2561c8a commit d4b496e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions public/files/js/models/concordance/refsDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,14 @@ export class RefsDetailModel extends StatelessModel<RefsDetailModelState> {
Actions.ShowRefDetailDone.name,
(state, action) => {
state.isBusy = false;
state.data = action.payload.data;
state.lineIdx = action.payload.lineIdx;
if (!action.error) {
state.data = action.payload.data;
state.lineIdx = action.payload.lineIdx;

} else {
state.data = [];
state.lineIdx = null;
}
}
);

Expand Down

0 comments on commit d4b496e

Please sign in to comment.