Unverified Commit cecf13a7 authored by Sam Ko's avatar Sam Ko Committed by GitHub

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
parent b7eb7d35
...@@ -244,7 +244,7 @@ export default class FetchCache implements CacheHandler { ...@@ -244,7 +244,7 @@ export default class FetchCache implements CacheHandler {
if (cached.kind === 'FETCH') { if (cached.kind === 'FETCH') {
cached.tags ??= [] cached.tags ??= []
for (const tag of tags ?? []) { for (const tag of tags ?? []) {
if (!cached.tags.include(tag)) { if (!cached.tags.includes(tag)) {
cached.tag.push(tag) cached.tag.push(tag)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment