mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐛 Fix issue with adding expression to parameter
This commit is contained in:
parent
a0b8d67e3e
commit
4d86384d9d
|
@ -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 });
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue