Skip to content

Commit 63a6efd

Browse files
authored
Fix result editor (#9653)
1 parent f3909a8 commit 63a6efd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

plugins/process-resources/src/components/settings/ResultEditor.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@
9191
}
9292
9393
function handleNameChange (e: any): void {
94-
if (e.detail !== undefined && step.result != null && name !== e.detail) {
95-
step.result.name = e.detail
96-
name = e.detail
94+
if (step.result != null) {
95+
step.result.name = name
9796
dispatch('change', step)
9897
}
9998
}

plugins/process-resources/src/components/settings/ToDoEditor.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</div>
6363
<div class="divider" />
6464
{#key step._id}
65-
<ResultEditor {step} on:chage={changeResult} />
65+
<ResultEditor {step} on:change={changeResult} />
6666
{/key}
6767

6868
<style lang="scss">

0 commit comments

Comments
 (0)