We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30027d4 commit 85625c5Copy full SHA for 85625c5
src/components/blocs/relations/utils/status.js
@@ -6,7 +6,7 @@ export function isFinished(relation) {
6
}
7
8
export function spreadByStatus(data) {
9
- const current = data?.filter((el) => (el.startDate < getComparableNow() || (!el.startDate && !el.endDate)) && !isFinished(el));
+ const current = data?.filter((el) => (el.startDate <= getComparableNow() || (!el.startDate && !el.endDate)) && !isFinished(el));
10
const inactive = data?.filter((el) => isFinished(el));
11
const forthcoming = data?.filter((el) => el.startDate > getComparableNow());
12
const counts = {
0 commit comments