mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-06 20:22:14 +00:00
fix: invalidate query missing
This commit is contained in:
@@ -122,6 +122,9 @@ export const HandleDestinations = ({ destinationId }: Props) => {
|
|||||||
.then(async () => {
|
.then(async () => {
|
||||||
toast.success(`Destination ${destinationId ? "Updated" : "Created"}`);
|
toast.success(`Destination ${destinationId ? "Updated" : "Created"}`);
|
||||||
await utils.destination.all.invalidate();
|
await utils.destination.all.invalidate();
|
||||||
|
if (destinationId) {
|
||||||
|
await utils.destination.one.invalidate({ destinationId });
|
||||||
|
}
|
||||||
setOpen(false);
|
setOpen(false);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user