Skip to content

Commit

Permalink
Fix runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
devknoll committed Sep 8, 2020
1 parent 339174d commit 860e2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/client/head-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function updateElements(
while (true) {
// Note: We don't use for-of here to avoid needing to polyfill it.
const { done, value } = elementIter.next()
if (value.isEqualNode(newTag)) {
if (value?.isEqualNode(newTag)) {
oldTags.delete(value)
return
}
Expand Down

0 comments on commit 860e2fb

Please sign in to comment.