Skip to content

Commit

Permalink
fix: fix file import ignored if table was manually edited before
Browse files Browse the repository at this point in the history
uploadPreprocess method is now reset when a file has been
sucessfully imported
  • Loading branch information
csm-thu authored and nborde-CSM committed Feb 7, 2022
1 parent 709cdc5 commit 56fe7ff
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ const create = (t, datasets, parameterMetadata, parametersState, setParametersSt
errors: agGridData.error,
status: finalStatus,
tableDataStatus: TABLE_DATA_STATUS.READY,
uploadPreprocess: null,
});
}
};
Expand Down Expand Up @@ -219,6 +220,7 @@ const create = (t, datasets, parameterMetadata, parametersState, setParametersSt
errors: agGridData.error,
status: UPLOAD_FILE_STATUS_KEY.READY_TO_UPLOAD,
tableDataStatus: TABLE_DATA_STATUS.READY,
uploadPreprocess: null,
});
}
};
Expand Down

0 comments on commit 56fe7ff

Please sign in to comment.