feat: include Pending status in task status count calculation
This commit is contained in:
parent
f485d95e81
commit
9fe09ef4ae
1 changed files with 5 additions and 1 deletions
|
|
@ -564,7 +564,11 @@ function taskStatusCount(index: number, id: string) {
|
||||||
(t) => t.requestWorkStep.requestWork.productService.productId === id,
|
(t) => t.requestWorkStep.requestWork.productService.productId === id,
|
||||||
);
|
);
|
||||||
if (index === 1) {
|
if (index === 1) {
|
||||||
return task?.filter((t) => t.taskStatus === TaskStatus.InProgress).length;
|
return task?.filter(
|
||||||
|
(t) =>
|
||||||
|
t.taskStatus === TaskStatus.InProgress ||
|
||||||
|
t.taskStatus === TaskStatus.Pending,
|
||||||
|
).length;
|
||||||
} else if (index === 2) {
|
} else if (index === 2) {
|
||||||
return task?.filter(
|
return task?.filter(
|
||||||
(t) =>
|
(t) =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue