fix: invalidate notification.one query cache on update

When editing a notification, only the notification.all query cache was
invalidated. The notification.one query retained stale data, causing
the edit form to display previous values on subsequent edits.
This commit is contained in:
Волков Дмитрий Сергеевич
2026-03-10 23:10:37 +05:00
parent 178f4fbdf7
commit 1c0dbbcfd6

View File

@@ -737,6 +737,9 @@ export const HandleNotifications = ({ notificationId }: Props) => {
});
setVisible(false);
await utils.notification.all.invalidate();
if (notificationId) {
await utils.notification.one.invalidate({ notificationId });
}
})
.catch(() => {
toast.error(