Skip to content

Commit 08a6758

Browse files
blizzzbackportbot[bot]
authored andcommitted
fix(WFE): properly set inital status
The operationComponent.value is only possibly available with registered operations that have the value prop. Ones that do not would not have the value set properly initially. Going to inputValue, which is mapped to the components model-value, solves this. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
1 parent e08ffe2 commit 08a6758

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • apps/workflowengine/src/components

apps/workflowengine/src/components/Rule.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
<Operation :operation="operation" :colored="false">
3232
<component :is="operation.element"
3333
v-if="operation.element"
34-
ref="operationComponent"
3534
:model-value="inputValue"
3635
@update:model-value="updateOperationByEvent" />
3736
<component :is="operation.options"
@@ -136,9 +135,8 @@ export default {
136135
},
137136
mounted() {
138137
this.originalRule = JSON.parse(JSON.stringify(this.rule))
139-
140138
if (this.operation?.element) {
141-
this.$refs.operationComponent.value = this.rule.operation
139+
this.inputValue = this.rule.operation
142140
} else if (this.operation?.options) {
143141
// keeping this in an else for apps that try to be backwards compatible and may ship both
144142
// to be removed in 03/2028

0 commit comments

Comments
 (0)