Filter out archived docs for selectors (#1544)

Signed-off-by: Dvinyanin Alexandr <dvinyanin.alexandr@gmail.com>
This commit is contained in:
Alex 2022-04-26 15:50:46 +07:00 committed by GitHub
parent 23e57e27e9
commit 69a8e50220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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 }))