🐛 Fix issue with adding expression to parameter

This commit is contained in:
Jan Oberhauser 2021-05-29 22:41:54 -05:00
parent a0b8d67e3e
commit 4d86384d9d

View file

@ -72,10 +72,6 @@ export default mixins(
latestValue: '', latestValue: '',
}; };
}, },
mounted () {
this.displayValue = this.value;
this.latestValue = this.value;
},
methods: { methods: {
valueChanged (value: string) { valueChanged (value: string) {
this.latestValue = value; this.latestValue = value;
@ -103,6 +99,9 @@ export default mixins(
}, },
watch: { watch: {
dialogVisible (newValue) { dialogVisible (newValue) {
this.displayValue = this.value;
this.latestValue = this.value;
const resolvedExpressionValue = this.$refs.expressionResult && (this.$refs.expressionResult as any).getValue() || undefined; // tslint:disable-line:no-any const resolvedExpressionValue = this.$refs.expressionResult && (this.$refs.expressionResult as any).getValue() || undefined; // tslint:disable-line:no-any
this.$externalHooks().run('expressionEdit.dialogVisibleChanged', { dialogVisible: newValue, parameter: this.parameter, value: this.value, resolvedExpressionValue }); this.$externalHooks().run('expressionEdit.dialogVisibleChanged', { dialogVisible: newValue, parameter: this.parameter, value: this.value, resolvedExpressionValue });
}, },