Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Replace keys when inserting style/script tags
Browse files Browse the repository at this point in the history
  • Loading branch information
smikitky committed Feb 6, 2019
1 parent e74a555 commit 16515ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/gatsby-remark-header-custom-ids/gatsby-ssr.js
Expand Up @@ -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>
) : (
Expand All @@ -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}}
/>,
]);
Expand Down

0 comments on commit 16515ce

Please sign in to comment.