Skip to content

Commit

Permalink
Merge pull request #1134 from AI4Bharat/analytic-org-ui
Browse files Browse the repository at this point in the history
csv,json fix
  • Loading branch information
aparna-aa authored Dec 30, 2024
2 parents 39633e5 + 3d5af0c commit 3776b76
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 3776b76

Please sign in to comment.