Fix spaces popup (#5559)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-05-09 19:02:40 +05:00 committed by GitHub
parent 60bc64f069
commit 5a63e0ea17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,6 +51,7 @@
$: query.query(
_class,
{
members: me,
...(spaceQuery ?? {}),
...(search !== undefined && search !== ''
? {
@ -59,7 +60,7 @@
: {})
},
(res) => {
spaces = res.filter((p) => !p.private || p.members.includes(me))
spaces = res
},
spaceOptions
)