From ac1c3a0ade2e018406120833e49c0760d68c53aa Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sat, 20 Apr 2024 19:56:42 -0500 Subject: [PATCH] Change layout when revalidating photo path --- src/photo/cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/photo/cache.ts b/src/photo/cache.ts index b9c25491..1c2ccc7d 100644 --- a/src/photo/cache.ts +++ b/src/photo/cache.ts @@ -117,7 +117,7 @@ export const revalidatePhoto = (photoId: string) => { revalidateCamerasKey(); revalidateFilmSimulationsKey(); // Paths - revalidatePath(pathForPhoto(photoId)); + revalidatePath(pathForPhoto(photoId), 'layout'); revalidatePath(PATH_ROOT); revalidatePath(PATH_GRID); revalidatePath(PREFIX_TAG, 'layout');