1
0

feat(navigation): correctly show child projects

This commit is contained in:
kolaente
2023-03-27 11:05:22 +02:00
parent 3ad948305f
commit b188d40d3c
3 changed files with 15 additions and 7 deletions

View File

@ -22,6 +22,7 @@ export default class ProjectModel extends AbstractModel<IProject> implements IPr
subscription: ISubscription = null
position = 0
backgroundBlurHash = ''
childProjects = []
created: Date = null
updated: Date = null
@ -44,6 +45,8 @@ export default class ProjectModel extends AbstractModel<IProject> implements IPr
if (typeof this.subscription !== 'undefined' && this.subscription !== null) {
this.subscription = new SubscriptionModel(this.subscription)
}
this.childProjects = this.childProjects.map(p => new ProjectModel(p))
this.created = new Date(this.created)
this.updated = new Date(this.updated)