fix(workbench): keep active notices after reading
This commit is contained in:
@@ -766,7 +766,9 @@ export function MapWorkbenchPage({
|
||||
if (alert.id.startsWith("operational-task-notification:")) {
|
||||
const notificationId = alert.id.slice("operational-task-notification:".length);
|
||||
const notification = operationalTasks.notifications.find((item) => item.notification_id === notificationId);
|
||||
if (notification) void operationalTasks.acknowledgeNotification(notificationId, notification.version);
|
||||
if (notification?.status === "unread") {
|
||||
void operationalTasks.acknowledgeNotification(notificationId, notification.version);
|
||||
}
|
||||
}
|
||||
const conditionId = alert.conditionId ?? getScheduledConditionIdFromAlertId(alert.id);
|
||||
if (conditionId) {
|
||||
|
||||
Reference in New Issue
Block a user