Skip to content

Commit

Permalink
Merge branch 'master' into lsf-ui4
Browse files Browse the repository at this point in the history
  • Loading branch information
ishvindersethi22 authored Jan 7, 2025
2 parents bf1e727 + 3776b76 commit 0bc14d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/redux/reducers/Progress/TaskAnalytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import C from "../../constants";

let initialState = {
data: [],
originalData: [],

};

const diffAnnotationReview = (payload) => {
Expand Down Expand Up @@ -32,7 +34,7 @@ const reducer = (state = initialState, action) => {
switch (action.type) {
case C.FETCH_TASK_ANALYTICS_DATA:
const data = diffAnnotationReview(action.payload);
return { ...state, data };
return { ...state, originalData: action.payload, data };

default:
return {
Expand Down

0 comments on commit 0bc14d4

Please sign in to comment.