Add missing new series to state

This commit is contained in:
Bogdan 2026-04-25 19:54:06 +03:00
parent bf5d48c76a
commit 789143134c

View file

@ -302,12 +302,7 @@ function SignalRListener() {
if (body.action === 'updated') {
const updatedItem = body.resource as Series;
updateQueryClientItem(
queryClient,
['/series'],
updatedItem,
false // Don't add the series to the list if it doesn't exist. Series should already be in the list since they are included in the calendar and series details.
);
updateQueryClientItem(queryClient, ['/series'], updatedItem, true);
repopulatePage('seriesUpdated');
} else if (body.action === 'deleted') {