fix: api integration
This commit is contained in:
@ -22,16 +22,16 @@ class Project {
|
||||
this._idProject = value;
|
||||
}
|
||||
|
||||
get projectName(): string | undefined {
|
||||
return this._projectName;
|
||||
get projectName(): string {
|
||||
return this._projectName ?? "";
|
||||
}
|
||||
|
||||
set projectName(value: string | undefined) {
|
||||
this._projectName = value;
|
||||
}
|
||||
|
||||
get creationDate(): string | undefined {
|
||||
return this._creationDate;
|
||||
get creationDate(): string {
|
||||
return this._creationDate ?? "";
|
||||
}
|
||||
|
||||
set creationDate(value: string | undefined) {
|
||||
@ -77,6 +77,13 @@ class Project {
|
||||
status: this.status,
|
||||
};
|
||||
}
|
||||
|
||||
toCreatePayload() {
|
||||
return {
|
||||
projectName: this.projectName,
|
||||
logo: this.logo,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export default Project;
|
||||
|
Reference in New Issue
Block a user