Don't display "null%" progress
This commit is contained in:
parent
4682e2c85a
commit
8f35e76928
1 changed files with 11 additions and 1 deletions
|
@ -105,7 +105,17 @@ export class IPCClient {
|
|||
})
|
||||
|
||||
for (const { serverUrl, job } of data.processingJobs) {
|
||||
const row = [ serverUrl, job.type, job.startedAt.toLocaleString(), `${job.progress}%` ]
|
||||
const row = [
|
||||
serverUrl,
|
||||
job.type,
|
||||
|
||||
job.startedAt?.toLocaleString(),
|
||||
|
||||
job.progress !== undefined && job.progress !== null
|
||||
? `${job.progress}%`
|
||||
: ''
|
||||
]
|
||||
|
||||
if (options.includePayload) row.push(JSON.stringify(job.payload, undefined, 2))
|
||||
|
||||
table.push(row)
|
||||
|
|
Loading…
Add table
Reference in a new issue