summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models
diff options
context:
space:
mode:
authorfranciscovila <javier.paradela.vila@est.tech>2022-06-30 16:06:54 +0100
committerMichael Morris <michael.morris@est.tech>2022-07-18 12:05:51 +0000
commit4e4ec8e9c21acf7f9210aaebf8f13a60542737fc (patch)
tree15723af4fb7d6ca044be596ce1100ad19767bc3f /catalog-ui/src/app/models
parentee8876059c520d97bf068734b25a02365d7fe1ea (diff)
Allow set values in properties of type timestamp
Issue-ID: SDC-4080 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: I4c03e660e64118a388beb1d0db3527f9a1427c3f
Diffstat (limited to 'catalog-ui/src/app/models')
-rw-r--r--catalog-ui/src/app/models/properties-inputs/property-fe-model.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/catalog-ui/src/app/models/properties-inputs/property-fe-model.ts b/catalog-ui/src/app/models/properties-inputs/property-fe-model.ts
index d4b45408ca..f231ec8aa8 100644
--- a/catalog-ui/src/app/models/properties-inputs/property-fe-model.ts
+++ b/catalog-ui/src/app/models/properties-inputs/property-fe-model.ts
@@ -284,6 +284,7 @@ export class PropertyFEModel extends PropertyBEModel {
valueObj = value || defaultValue || null; // use null for empty value object
if (valueObj &&
propertyType !== PROPERTY_TYPES.STRING &&
+ propertyType !== PROPERTY_TYPES.TIMESTAMP &&
propertyType !== PROPERTY_TYPES.JSON &&
PROPERTY_DATA.SCALAR_TYPES.indexOf(<string>propertyType) == -1) {
valueObj = JSON.parse(value); // the value object contains the real value ans not the value as string