Skip to content

Commit

Permalink
fixed sorting bug, and set status to INI by default instead of NRQ
Browse files Browse the repository at this point in the history
  • Loading branch information
matbusby committed Jan 23, 2024
1 parent 9b0a78b commit 48b6398
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def post(self, mine_guid):
submission = submissions[-1]
if len(submission.get('documents')) > 0:
submission_status = data.get('mine_report_submission_status') if data.get(
'mine_report_submission_status') else 'NRQ'
'mine_report_submission_status') else 'INI'
report_submission = MineReportSubmission(
mine_report_submission_status_code=submission_status,
submission_date=datetime.utcnow())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const ReportsTable: FC<ReportsTableProps> = (props) => {

return {
...report,
status: latestSubmission?.mine_report_submission_status_code,
status: latestSubmission?.mine_report_submission_status_code ?? "",
};
});

Expand Down

0 comments on commit 48b6398

Please sign in to comment.