Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.map((item) => {
item.status = FileUploadStatus.Deleted;
});
}
({ status }) =>
status === FileUploadStatus.Aborted ||
status === FileUploadStatus.Cancelled ||
status === FileUploadStatus.Deleted
)
.map((item) => {
item.status = FileUploadStatus.Deleted;
});
}
showCancelledStatus(): boolean {
return this.file.status === FileUploadStatus.Cancelled ||
this.file.status === FileUploadStatus.Aborted ||
this.file.status === FileUploadStatus.Deleted;
}
map(() => {
file.status = FileUploadStatus.Deleted;
return file;
}),
catchError(() => {
map(() => {
file.status = FileUploadStatus.Deleted;
return file;
}),
catchError(() => {
({ status }) =>
status === FileUploadStatus.Aborted ||
status === FileUploadStatus.Cancelled ||
status === FileUploadStatus.Deleted
)