Skip to content

Commit cecf13a

Browse files
authored
fix(fetch-cache): fix typo (#64786)
## Why? This typo was resulting in this error in deploy. ``` Failed to get from fetch-cache TypeError: s.tags.include is not a function ``` Closes NEXT-3168
1 parent b7eb7d3 commit cecf13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/server/lib/incremental-cache/fetch-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export default class FetchCache implements CacheHandler {
244244
if (cached.kind === 'FETCH') {
245245
cached.tags ??= []
246246
for (const tag of tags ?? []) {
247-
if (!cached.tags.include(tag)) {
247+
if (!cached.tags.includes(tag)) {
248248
cached.tag.push(tag)
249249
}
250250
}

0 commit comments

Comments
 (0)