Low code Editor, change task type produce invalid task definition 
- Choose a type type (s3 upload in my screenshot), fill the required properties, hit save 
- Change task type to echo, fill the format props
- see an error about unknown fields `accessKey`  
![image](https://github.com/kestra-io/kestra/assets/2064609/0b70a65e-2436-4d12-aea1-f5447a42eee0)

ui/src/components/flows/TaskEditor.vue
ui/src/components/flows/TaskEditor.vue
diff --git a/ui/src/components/flows/TaskEditor.vue b/ui/src/components/flows/TaskEditor.vue
index 5851e49040..cc010668b2 100644
--- a/ui/src/components/flows/TaskEditor.vue
+++ b/ui/src/components/flows/TaskEditor.vue
@@ -87,11 +87,11 @@
 
             },
             onInput(value) {
+                this.taskObject = value;
                 this.$emit("update:modelValue", YamlUtils.stringify(value));
             },
             onTaskTypeSelect() {
                 this.load();
-                this.taskObject.type = this.selectedTaskType;
                 const value = {
                     type: this.selectedTaskType
                 };
