1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-11-11 01:28:58 +03:00

🐛 Fix issue that parameters did not always get set correctly from

external windows
This commit is contained in:
Jan Oberhauser 2019-07-10 11:46:59 +02:00
parent d80b703dfd
commit bba3154ed5

View File

@ -151,9 +151,12 @@ export default mixins(
},
methods: {
valueChanged (parameterData: IUpdateInformation) {
const name = parameterData.name.split('.').pop();
// @ts-ignore
this.propertyValue[name] = parameterData.value;
const name = parameterData.name.split('.').pop() as string;
// For a currently for me unknown reason can In not simply just
// set the value and it has to be this way.
const tempValue = JSON.parse(JSON.stringify(this.propertyValue));
tempValue[name] = parameterData.value;
Vue.set(this, 'propertyValue', tempValue);
},
async createCredentials (): Promise<void> {
const nodesAccess = this.nodesAccess.map((nodeType) => {