mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-21 17:17:54 +02:00
:Apply templates (#3799)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -64,11 +64,11 @@
|
||||
|
||||
$: queries = { assigned, created, subscribed }
|
||||
$: mode = $resolvedLocationStore.query?.mode ?? undefined
|
||||
$: if (mode === undefined || queries[mode] === undefined) {
|
||||
$: if (mode === undefined || (queries as any)[mode] === undefined) {
|
||||
;[[mode]] = config
|
||||
}
|
||||
$: if (mode !== undefined) {
|
||||
query = { ...queries[mode] }
|
||||
query = { ...(queries as any)[mode] }
|
||||
if (query?.space === undefined) {
|
||||
query = { ...query, space: { $nin: archived } }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user