fix: allow save if data is empty
This commit is contained in:
@ -69,9 +69,9 @@ export class SkipUpdateScheduleComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
validateSaveButton(): boolean {
|
validateSaveButton(): boolean {
|
||||||
return this.dateItems.some(item =>
|
return (this.dateItems.length == 0 || this.dateItems.some(item =>
|
||||||
(item.start && item.end) || item.date
|
(item.start && item.end) || item.date
|
||||||
) && JSON.stringify(this.dateItems) != JSON.stringify(this.dateItemsBefore);
|
)) && JSON.stringify(this.dateItems) != JSON.stringify(this.dateItemsBefore);
|
||||||
}
|
}
|
||||||
|
|
||||||
saveFunction() {
|
saveFunction() {
|
||||||
|
Reference in New Issue
Block a user