changing json handling with function inputs
[ccsdk/cds.git] / cds-ui / designer-client / src / app / modules / feature-modules / packages / designer / functions-attribute / functions-attribute.component.ts
index a86ade0..70ccb73 100644 (file)
@@ -139,11 +139,11 @@ export class FunctionsAttributeComponent implements OnInit, OnDestroy {
             if (inputs) {
                 for (const [key, value] of Object.entries(inputs)) {
                     console.log(key + ' - ' + value);
-                    if (typeof value === 'object' || this.isValidJson(value)) {
+                   /* if (typeof value === 'object' || this.isValidJson(value)) {
                         this.currentFuncion.inputs[key] = JSON.stringify(value);
-                    } else {
-                        this.currentFuncion.inputs[key] = value;
-                    }
+                    } else {*/
+                    this.currentFuncion.inputs[key] = value;
+                   // }
                 }
             }
             if (outputs) {