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
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react';
import './SavedNotifications.css';
function SavedNotifications({ onClose }) {
function SavedNotifications({ onClose, onNotificationChange }) {
const [loading, setLoading] = useState(true);
const [error, setError] = useState(null);
const [items, setItems] = useState([]);
@@ -41,6 +41,7 @@ function SavedNotifications({ onClose }) {
});
if (!res.ok && res.status !== 204) throw new Error(`HTTP ${res.status}`);
setItems(prev => prev.filter(i => !(i.scope === item.scope && i.id === item.id)));
onNotificationChange?.();
} catch (err) {
setError(err.message || 'No se pudo eliminar la notificación');
} finally {