Hotfixes in ci/cd and notifications
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user