Skip to content

Commit 3232d56

Browse files
committed
Another devin fix
1 parent 98781c8 commit 3232d56

File tree

1 file changed

+3
-1
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.errors._index

1 file changed

+3
-1
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.errors._index/route.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ function ErrorActionsCell({
621621
envParam: string;
622622
}) {
623623
const fetcher = useFetcher<{ ok?: boolean }>();
624+
const revalidator = useRevalidator();
624625
const [customIgnoreOpen, setCustomIgnoreOpen] = useState(false);
625626
const toast = useToast();
626627
const pendingToast = useRef<string | undefined>();
@@ -629,8 +630,9 @@ function ErrorActionsCell({
629630
if (fetcher.state === "idle" && fetcher.data?.ok && pendingToast.current) {
630631
toast.success(pendingToast.current);
631632
pendingToast.current = undefined;
633+
revalidator.revalidate();
632634
}
633-
}, [fetcher.state, fetcher.data, toast]);
635+
}, [fetcher.state, fetcher.data, toast, revalidator]);
634636

635637
const actionUrl = v3ErrorPath(
636638
{ slug: organizationSlug },

0 commit comments

Comments
 (0)