This commit is contained in:
Peter Maquiran
2021-11-19 14:56:29 +01:00
parent 94f4f3e7e0
commit cb3d5957f4
6 changed files with 36 additions and 32 deletions
@@ -24,11 +24,11 @@ export class PublicationEventFolderService {
}
get list() {
return this._list
return this._list || []
}
reset(list: PublicationFolder[]) {
this._list = list
this._list = list || []
this.save()
}
@@ -36,7 +36,7 @@ export class PublicationEventFolderService {
private save() {
setTimeout(()=> {
localstoreService.set(this.keyName, {
list: this._list
list: this._list || []
})
}, 10)
}