mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3324] Preview - unshared file breaks preview (#3580)
This commit is contained in:
committed by
Eugenio Romano
parent
50b6fb978b
commit
ee8151d50d
@@ -298,10 +298,15 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
|
||||
);
|
||||
} else if (this.sharedLinkId) {
|
||||
|
||||
this.apiService.sharedLinksApi.getSharedLink(this.sharedLinkId).then(details => {
|
||||
this.setUpSharedLinkFile(details);
|
||||
this.isLoading = false;
|
||||
});
|
||||
this.apiService.sharedLinksApi.getSharedLink(this.sharedLinkId).then(
|
||||
details => {
|
||||
this.setUpSharedLinkFile(details);
|
||||
this.isLoading = false;
|
||||
},
|
||||
() => {
|
||||
this.isLoading = false;
|
||||
this.logService.error('This sharedLink does not exist');
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user