mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +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()
|
const tasksQuery = createQuery()
|
||||||
tasksQuery.query(
|
tasksQuery.query(
|
||||||
board.class.Card,
|
board.class.Card,
|
||||||
{ state },
|
{ state, isArchived: { $nin: [true] } },
|
||||||
async (result) => {
|
async (result) => {
|
||||||
const filteredResult = isCopying ? result : result.filter((t) => t._id !== object._id)
|
const filteredResult = isCopying ? result : result.filter((t) => t._id !== object._id)
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
const statesQuery = createQuery()
|
const statesQuery = createQuery()
|
||||||
statesQuery.query(
|
statesQuery.query(
|
||||||
task.class.State,
|
task.class.State,
|
||||||
{ space },
|
{ space, isArchived: { $nin: [true] } },
|
||||||
async (result) => {
|
async (result) => {
|
||||||
if (!result) return
|
if (!result) return
|
||||||
states = result.map(({ _id, title }) => ({ id: _id, label: title }))
|
states = result.map(({ _id, title }) => ({ id: _id, label: title }))
|
||||||
|
Loading…
Reference in New Issue
Block a user