mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
Filter out archived docs for selectors (#1544)
Signed-off-by: Dvinyanin Alexandr <dvinyanin.alexandr@gmail.com>
This commit is contained in:
parent
23e57e27e9
commit
69a8e50220
@ -18,7 +18,7 @@
|
||||
const tasksQuery = createQuery()
|
||||
tasksQuery.query(
|
||||
board.class.Card,
|
||||
{ state },
|
||||
{ state, isArchived: { $nin: [true] } },
|
||||
async (result) => {
|
||||
const filteredResult = isCopying ? result : result.filter((t) => t._id !== object._id)
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
const statesQuery = createQuery()
|
||||
statesQuery.query(
|
||||
task.class.State,
|
||||
{ space },
|
||||
{ space, isArchived: { $nin: [true] } },
|
||||
async (result) => {
|
||||
if (!result) return
|
||||
states = result.map(({ _id, title }) => ({ id: _id, label: title }))
|
||||
|
Loading…
Reference in New Issue
Block a user