mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -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: '',
|
||||
};
|
||||
},
|
||||
mounted () {
|
||||
this.displayValue = this.value;
|
||||
this.latestValue = this.value;
|
||||
},
|
||||
methods: {
|
||||
valueChanged (value: string) {
|
||||
this.latestValue = value;
|
||||
|
@ -103,6 +99,9 @@ export default mixins(
|
|||
},
|
||||
watch: {
|
||||
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
|
||||
this.$externalHooks().run('expressionEdit.dialogVisibleChanged', { dialogVisible: newValue, parameter: this.parameter, value: this.value, resolvedExpressionValue });
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue