Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

bugfix dismissing wrong status messages

jonaswinkler2fcf4842299a
diff --git a/src-ui/src/app/services/consumer-status.service.ts b/src-ui/src/app/services/consumer-status.service.ts
index 23df0871f..e03282175 100644
--- a/src-ui/src/app/services/consumer-status.service.ts
+++ b/src-ui/src/app/services/consumer-status.service.ts
@@ -169,7 +169,12 @@ export class ConsumerStatusService {
}
dismiss(status: FileStatus) {
- let index = this.consumerStatus.findIndex(s => s.filename == status.filename)
+ let index
+ if (status.taskId != null) {
+ index = this.consumerStatus.findIndex(s => s.taskId == status.taskId)
+ } else {
+ index = this.consumerStatus.findIndex(s => s.filename == status.filename)
+ }
if (index > -1) {
this.consumerStatus.splice(index, 1)