diff --git a/packages/app/src/app/(default)/index-egapro/objectifs-mesures/actions.ts b/packages/app/src/app/(default)/index-egapro/objectifs-mesures/actions.ts index 492509984..31dbc9056 100644 --- a/packages/app/src/app/(default)/index-egapro/objectifs-mesures/actions.ts +++ b/packages/app/src/app/(default)/index-egapro/objectifs-mesures/actions.ts @@ -12,7 +12,6 @@ import { DeclarationSpecificationError } from "@common/core-domain/domain/specif import { type UpdateOpMcDTO } from "@common/core-domain/dtos/UpdateOpMcDTO"; import { type ServerActionResponse } from "@common/utils/next"; import assert from "assert"; -import { revalidatePath } from "next/cache"; import { getServerSession } from "next-auth"; export async function getDeclarationOpmc(siren: string, year: number) { @@ -69,7 +68,8 @@ export async function updateDeclarationOpmc({ email, }); - revalidatePath(`/index-egapro/declaration/${siren}/${year}/pdf`); + // Note: [revalidatePath bug](https://github.com/vercel/next.js/issues/49387). Try to reactivate it when it will be fixed in Next (it seems to be fixed in Next 14). + // revalidatePath(`/index-egapro/declaration/${siren}/${year}/pdf`); return { ok: true,