mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 11:01:54 +03:00
Fix due date (#3042)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
134a4fe10c
commit
5ef4205a97
@ -92,7 +92,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<DueDatePresenter
|
<DueDatePresenter
|
||||||
value={object.dueDate}
|
value={object.dueDate}
|
||||||
shouldRender={object.dueDate !== null}
|
shouldRender={object.dueDate !== null && object.dueDate !== undefined}
|
||||||
onChange={async (e) => {
|
onChange={async (e) => {
|
||||||
await client.update(object, { dueDate: e })
|
await client.update(object, { dueDate: e })
|
||||||
}}
|
}}
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
|
|
||||||
$: shouldRenderPresenter =
|
$: shouldRenderPresenter =
|
||||||
dueDateMs !== null &&
|
dueDateMs !== null &&
|
||||||
|
dueDateMs !== undefined &&
|
||||||
value.$lookup?.status?.category !== tracker.issueStatusCategory.Completed &&
|
value.$lookup?.status?.category !== tracker.issueStatusCategory.Completed &&
|
||||||
value.$lookup?.status?.category !== tracker.issueStatusCategory.Canceled
|
value.$lookup?.status?.category !== tracker.issueStatusCategory.Canceled
|
||||||
</script>
|
</script>
|
||||||
|
@ -1063,7 +1063,7 @@ function fillDateSort (key: string, pipeline: any[], sort: any, options: FindOpt
|
|||||||
}
|
}
|
||||||
pipeline.push({
|
pipeline.push({
|
||||||
$addFields: {
|
$addFields: {
|
||||||
[`sort_isNull_${key}`]: { $eq: [`$${key}`, null] }
|
[`sort_isNull_${key}`]: { [key]: null }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
sort[`sort_isNull_${key}`] = options.sort[_key] === SortingOrder.Ascending ? 1 : -1
|
sort[`sort_isNull_${key}`] = options.sort[_key] === SortingOrder.Ascending ? 1 : -1
|
||||||
|
Loading…
Reference in New Issue
Block a user