Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Fix export csv file error \'dur.toFormat is not a function\' (#5227)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyione authored Jan 11, 2021
1 parent 2733345 commit c962e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webportal/src/app/components/util/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function getJobDuration(jobInfo) {
}

export function getDurationString(dur) {
if (!isNil(dur)) {
if (!isNil(dur) && dur !== 'null') {
if (dur.days > 0) {
return dur.toFormat(`d'd' h'h' m'm' s's'`);
} else if (dur.hours > 0) {
Expand Down

0 comments on commit c962e59

Please sign in to comment.