Hotfixes in ci/cd and notifications
Run Tests on Branches / Backend Tests (push) Failing after 1m30s
Run Tests on Branches / Frontend Tests (push) Successful in 1m42s

This commit is contained in:
Antoni Nuñez Romeu
2026-07-06 17:18:15 +02:00
parent ed741104ba
commit 0785653474
4 changed files with 34 additions and 6 deletions
+2 -1
View File
@@ -14,7 +14,7 @@ const iconMap = {
),
};
function AlertsView() {
function AlertsView({ onNotificationChange }) {
const [availability, setAvailability] = useState([]);
const [loading, setLoading] = useState(true);
const [error, setError] = useState(null);
@@ -63,6 +63,7 @@ function AlertsView() {
});
if (res.ok || res.status === 204) {
setAvailability(prev => prev.filter(i => !(i.scope === item.scope && i.id === item.id)));
onNotificationChange?.();
// Also update local storage if possible to reflect that we unsubscribed
try {