Skip to content

Commit

Permalink
Update packages/next/client/head-manager.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Steven <[email protected]>
  • Loading branch information
furcan and styfle authored Nov 8, 2021
1 parent 439549f commit c15475b
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 @@ -79,7 +79,7 @@ function updateElements(type: string, components: JSX.Element[]): void {
}
)

oldTags.forEach((t) => t?.parentNode?.removeChild(t))
oldTags.forEach((t) => t.parentNode?.removeChild(t))
newTags.forEach((t) => headEl.insertBefore(t, headCountEl))
headCountEl.content = (headCount - oldTags.length + newTags.length).toString()
}
Expand Down

0 comments on commit c15475b

Please sign in to comment.