Skip to content

Commit c9a9ed8

Browse files
authored
Merge pull request #3967 from desen94/fix/invalidate-notification-cache-on-edit
fix: invalidate notification.one query cache on update
2 parents 178f4fb + 1c0dbbc commit c9a9ed8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/dokploy/components/dashboard/settings/notifications/handle-notifications.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,9 @@ export const HandleNotifications = ({ notificationId }: Props) => {
737737
});
738738
setVisible(false);
739739
await utils.notification.all.invalidate();
740+
if (notificationId) {
741+
await utils.notification.one.invalidate({ notificationId });
742+
}
740743
})
741744
.catch(() => {
742745
toast.error(

0 commit comments

Comments
 (0)