Date, time and Date & Time columns will not be saved when applied in the item card [SCI-10303]

This commit is contained in:
Giga Chubinidze 2024-03-07 06:04:22 +04:00
parent 46c9a52761
commit 9549d8b481

View file

@ -137,9 +137,11 @@ export default {
validateValue() {
this.error = null;
// Date is not changed
if (this.trimSecondsAndMilliseconds(this.defaultStartDate) === this.trimSecondsAndMilliseconds(this.startDate)
&& this.trimSecondsAndMilliseconds(this.defaultEndDate) === this.trimSecondsAndMilliseconds(this.endDate)) {
return false;
if (this.defaultStartDate && this.defaultEndDate) {
if (this.trimSecondsAndMilliseconds(this.defaultStartDate) === this.trimSecondsAndMilliseconds(this.startDate)
&& this.trimSecondsAndMilliseconds(this.defaultEndDate) === this.trimSecondsAndMilliseconds(this.endDate)) {
return false;
}
}
if (this.range) {