Skip to content

Commit 72c3aae

Browse files
authored
Fix processes ui (#9601)
Signed-off-by: Denis Bykhov <[email protected]>
1 parent c20442e commit 72c3aae

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

models/process/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ export function createModel (builder: Builder): void {
779779
presenter: process.component.ExecutonPresenter
780780
},
781781
{
782-
key: '',
782+
key: 'currentState',
783783
label: process.string.Step,
784784
presenter: process.component.ExecutonProgressPresenter
785785
},
@@ -832,7 +832,7 @@ export function createModel (builder: Builder): void {
832832
key: 'card'
833833
},
834834
{
835-
key: 'process',
835+
key: '',
836836
label: process.string.Process,
837837
presenter: process.component.ExecutonPresenter
838838
},

plugins/process-resources/src/components/ExecutonProgressPresenter.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
// limitations under the License.
1414
-->
1515
<script lang="ts">
16-
import { WithLookup } from '@hcengineering/core'
16+
import { Ref } from '@hcengineering/core'
1717
import { getClient } from '@hcengineering/presentation'
18-
import { Execution } from '@hcengineering/process'
18+
import { State } from '@hcengineering/process'
1919
20-
export let value: WithLookup<Execution>
20+
export let value: Ref<State>
2121
2222
const client = getClient()
2323
24-
$: currentState = client.getModel().findObject(value.currentState)
24+
$: currentState = client.getModel().findObject(value)
2525
</script>
2626

2727
{#if currentState}

0 commit comments

Comments
 (0)