Fix process (#10543)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2026-02-23 00:32:13 +05:00
committed by GitHub
parent d51b68683a
commit 8e32b26c17
2 changed files with 19 additions and 8 deletions
@@ -26,10 +26,11 @@
const client = getClient()
const h = client.getHierarchy()
const values: Record<ContextId, any> = {}
let values: Record<ContextId, any> = {}
results.forEach((r) => {
values[r._id] = context[r._id]
values = values
})
export function canClose (): boolean {
@@ -43,6 +44,7 @@
function getOnChange (id: ContextId): (val: any) => void {
return (val: any) => {
values[id] = val
values = values
}
}
</script>
@@ -51,7 +53,7 @@
width={'small'}
on:close
label={plugin.string.Result}
canSave={Object.keys(values).length === results.length}
canSave={Object.values(values).filter((v) => v != null).length === results.length}
okAction={save}
hideClose
okLabel={presentation.string.Save}