Publication fix delete publication when there is only one element

This commit is contained in:
Peter Maquiran
2021-09-03 17:01:01 +01:00
parent 37e17c0153
commit b83a71a396
3 changed files with 4 additions and 2 deletions
@@ -113,7 +113,8 @@ export class ViewPublicationsPage implements OnInit {
(error)=>{
if(error.status == '404') {
this.error = 'Sem publicações disponíveis!';
// this.publicationList = null;
this.publicationList= [];
this.publicationListStorage.add(folderId, this.publicationList)
}
this.showLoader = false;