fix: Attributi date opzionali

This commit is contained in:
Maicol Battistini 2023-06-17 14:59:54 +02:00
parent f510cb294c
commit 0668fabc41
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ export default abstract class Model<A extends ModelAttributes, R extends ModelRe
isDateAttribute(attributeName: string) {
// @ts-ignore
return super.isDateAttribute(attributeName) && this.attributes.get(attributeName) !== null;
return super.isDateAttribute(attributeName) && this.attributes.get(attributeName);
}
getAttributes() {