add queries to Table

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov
2021-10-24 13:16:44 +02:00
parent 32a99c202e
commit a6fa28cfde
7 changed files with 15 additions and 17 deletions
@@ -39,7 +39,7 @@
let objects: Doc[]
const query = createQuery()
$: query.query(_class, search === '' ? (space ? { space } : {}) : { $search: search }, result => { objects = result }, { sort: { [sortKey]: sortOrder }, ...options })
$: query.query(_class, search === '' ? { space } : { $search: search }, result => { objects = result }, { sort: { [sortKey]: sortOrder }, ...options })
function getValue(doc: Doc, key: string): any {
if (key.length === 0)