mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
catch added to getattachmentsbyid call
This commit is contained in:
@@ -404,8 +404,12 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
|
||||
|
||||
async getAttachments() {
|
||||
|
||||
let result: any = await this.attachmentsService.getAttachmentsById(this.InstanceId).toPromise();
|
||||
let result: any;
|
||||
try {
|
||||
result = await this.attachmentsService.getAttachmentsById(this.InstanceId).toPromise();
|
||||
} catch (error) {
|
||||
console.error('getAttachments', error)
|
||||
}
|
||||
|
||||
result.forEach((e)=>{
|
||||
e.action = false
|
||||
|
||||
Reference in New Issue
Block a user