TSK-1093: Fix Application doneState showing (#2927)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-04-10 13:55:22 +06:00
committed by GitHub
parent d7f9615a8e
commit d353c0e42d
22 changed files with 149 additions and 56 deletions
@@ -81,8 +81,8 @@
currentProject = res.shift()
})
let resultQuery: DocumentQuery<any> = { ...query, doneState: null }
$: getResultQuery(query, viewOptionsConfig, viewOptions).then((p) => (resultQuery = p))
let resultQuery: DocumentQuery<any> = { ...query }
$: getResultQuery(query, viewOptionsConfig, viewOptions).then((p) => (resultQuery = { ...p, ...query }))
const client = getClient()
const hierarchy = client.getHierarchy()
@@ -167,7 +167,15 @@
const categoryFunc = viewOption as CategoryOption
if (viewOptions[viewOption.key] ?? viewOption.defaultValue) {
const categoryAction = await getResource(categoryFunc.action)
const res = await categoryAction(_class, space, groupByKey, update, queryId, $statusStore, viewlet.descriptor)
const res = await categoryAction(
_class,
space ? { space } : {},
groupByKey,
update,
queryId,
$statusStore,
viewlet.descriptor
)
if (res !== undefined) {
categories = res
break