From bba3154ed53f6aec87066faca8a9d7da5ae58380 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Wed, 10 Jul 2019 11:46:59 +0200 Subject: [PATCH] :bug: Fix issue that parameters did not always get set correctly from external windows --- packages/editor-ui/src/components/CredentialsInput.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/editor-ui/src/components/CredentialsInput.vue b/packages/editor-ui/src/components/CredentialsInput.vue index 24c2d401e..2f45ae892 100644 --- a/packages/editor-ui/src/components/CredentialsInput.vue +++ b/packages/editor-ui/src/components/CredentialsInput.vue @@ -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 { const nodesAccess = this.nodesAccess.map((nodeType) => {