Skip to content

Commit b1dfa1a

Browse files
authored
Fixed nullref on revalidate resolution (#120)
1 parent 9598fb8 commit b1dfa1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/nextjs-cache-handler/src/helpers/resolveRevalidateValue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ export function resolveRevalidateValue(
2929

3030
let revalidate;
3131

32-
if (cachedFetchValue.kind === "FETCH") {
32+
if (cachedFetchValue?.kind === "FETCH") {
3333
revalidate = cachedFetchValue.revalidate;
34-
} else if (cachedPageValue.kind === "APP_PAGE") {
34+
} else if (cachedPageValue?.kind === "APP_PAGE") {
3535
revalidate = responseCacheCtx.cacheControl?.revalidate;
3636
}
3737

0 commit comments

Comments
 (0)