1
0
Fork 0

Don't display "null%" progress

This commit is contained in:
Chocobozzz 2025-02-20 10:52:53 +01:00
parent 4682e2c85a
commit 8f35e76928
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -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)