From af9a276c4d74e88881c29a2fdbee8a32ec843179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=B6llenbeck?= Date: Wed, 26 Jun 2024 13:54:29 +0200 Subject: [PATCH] only set starttoken to this.formData --- package.json | 2 +- ui/components/DynamicForm.vue | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5941645..8074efc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@5minds/node-red-dashboard-2-processcube-dynamic-form", - "version": "1.0.10", + "version": "1.0.11", "description": "The ui component for the ProcessCube dynamic-form", "keywords": [ "processcube", diff --git a/ui/components/DynamicForm.vue b/ui/components/DynamicForm.vue index b63f65c..befc522 100644 --- a/ui/components/DynamicForm.vue +++ b/ui/components/DynamicForm.vue @@ -66,7 +66,7 @@ export default { computed: { ...mapState("data", ["messages"]), waiting_title() { - return this.props.waiting_title || "Warten auf den Usertask..."; + return this.props.waiting_title || "Warten auf den Usertask..." }, waiting_info() { return ( @@ -89,8 +89,9 @@ export default { this.init() if (msg.payload && msg.payload.userTask && msg.payload.userTask.startToken && msg.payload.userTask.startToken.formData) { - this.formData = { ...msg.payload.userTask.startToken.formData }; - console.info(this.formData) + //this.formData = { ...msg.payload.userTask.startToken.formData }; + this.formData = { ...msg.payload.userTask.startToken } + console.info(this.formData) } this.$store.commit("data/bind", {