Commit f90cca9d by pratik pandey Committed by kevalbhatt

ATLAS-2039 : Unable to edit date value from UI when entity definition is POSTed…

ATLAS-2039 : Unable to edit date value from UI when entity definition is POSTed without value for date attribute. Signed-off-by: 's avatarkevalbhatt <kbhatt@apache.org>
parent 9d01689d
...@@ -462,8 +462,12 @@ define(['require', ...@@ -462,8 +462,12 @@ define(['require',
if (dataValue) { if (dataValue) {
entityValue = dataValue; entityValue = dataValue;
} }
if (value.typeName === "date" && dataValue) { if (value.typeName === "date") {
entityValue = moment(dataValue).format("MM/DD/YYYY"); if (dataValue) {
entityValue = moment(dataValue).format("MM/DD/YYYY");
} else {
entityValue = moment().format("MM/DD/YYYY");
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment