Skip to content

Commit

Permalink
return a number
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Nov 14, 2023
1 parent 43df889 commit 58ec286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manager/documents.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export const documents = new Svue({
return getDocumentsByCondition((doc) => doc.readable, documents);
},
numProcessing(pending) {
return pending && pending.length;
return (pending && pending.length) || 0;
},
rawDoneProcessing(numProcessing) {
// Wait a second before modulating value
Expand Down

0 comments on commit 58ec286

Please sign in to comment.