Skip to content
Permalink
Browse files

Replace keys when inserting style/script tags

  • Loading branch information...
smikitky committed Feb 6, 2019
1 parent e74a555 commit 16515ce4b903a3030ff852fdbe1ab3eb88c54c08
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/gatsby-remark-header-custom-ids/gatsby-ssr.js
@@ -59,7 +59,7 @@ exports.onRenderBody = ({setHeadComponents}, pluginOptions) => {
`;

const style = icon ? (
<style key={`gatsby-remark-autolink-headers-style`} type="text/css">
<style key="gatsby-remark-header-custom-ids-style" type="text/css">
{styles}
</style>
) : (
@@ -69,7 +69,7 @@ exports.onRenderBody = ({setHeadComponents}, pluginOptions) => {
return setHeadComponents([
style,
<script
key={`gatsby-remark-autolink-headers-script`}
key="gatsby-remark-header-custom-ids-script"
dangerouslySetInnerHTML={{__html: script}}
/>,
]);

0 comments on commit 16515ce

Please sign in to comment.
You can’t perform that action at this time.