Spaces search fix (#1160)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2022-03-17 16:08:37 +06:00 committed by GitHub
parent 294d6c5732
commit 3ee999fb7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@
const dispatch = createEventDispatcher()
const query = createQuery()
$: query.query(_class, { ...(spaceQuery ?? {}) }, result => { objects = result })
$: query.query(_class, { ...(spaceQuery ?? {}), name: { $like: '%' + search + '%' } }, result => { objects = result })
afterUpdate(() => { dispatch('update', Date.now()) })
</script>