-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip undefined attribute in Head (#9856)
* Fix #8655, skip rendering meta tags with undefined props * Filter all tags, not just meta * Only render defined props * Remove filtering of undefined strings Co-Authored-By: Tim Neutkens <tim@timneutkens.nl> * Replace Object.entries * Remove filtering code * Simplify code * Add test * Add tests for undefined head prop value and tweak check * Update to strip undefined prop values to match react * Update head.js Co-authored-by: Tim Neutkens <tim@timneutkens.nl> Co-authored-by: Joe Haddad <timer150@gmail.com> Co-authored-by: JJ Kasper <jj@jjsweb.site>
- Loading branch information
1 parent
9a8c310
commit c480c37
Showing
4 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters