From 2fcf4842299afa54f46257866554fe10f63b2818 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Mon, 15 Feb 2021 14:52:47 +0100 Subject: [PATCH] bugfix dismissing wrong status messages --- src-ui/src/app/services/consumer-status.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)