Skip to content

Commit

Permalink
rm unused properties, rename used property
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimpe committed Nov 13, 2024
1 parent 28d4b78 commit 4b278d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ SectionSubmissionHistory.propTypes = {
year: PropTypes.string,
}),
files: PropTypes.array,
fileIsOutdated: PropTypes.func,
}

const SubmissionHistory = ({ filterValues }) => {
Expand Down
6 changes: 4 additions & 2 deletions tdrs-frontend/src/components/SubmissionHistory/helpers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ export const downloadErrorReport = async (file, reportName) => {
}
}
export const hasReparsed = (f) =>
f.reparse_file_metas && f.reparse_file_metas.length > 0
f.latest_reparse_file_meta &&
f.latest_reparse_file_meta.finished_at &&
f.latest_reparse_file_meta.finished_at !== null

export const getReprocessedDate = (f) => f.reparse_file_metas[0].finished_at
export const getReprocessedDate = (f) => f.latest_reparse_file_meta.finished_at

export const getErrorReportStatus = (file) => {
if (
Expand Down
3 changes: 1 addition & 2 deletions tdrs-frontend/src/reducers/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ export const serializeApiDataFile = (dataFile) => ({
submittedBy: dataFile.submitted_by,
hasError: dataFile.has_error,
summary: dataFile.summary,
reparse_file_metas: dataFile.reparse_file_metas,
has_outdated_error_report: dataFile.has_outdated_error_report,
latest_reparse_file_meta: dataFile.latest_reparse_file_meta,
})

const initialState = {
Expand Down

0 comments on commit 4b278d1

Please sign in to comment.