Skip to content

Commit df8ee81

Browse files
authored
Update docs/src/@primer/gatsby-theme-doctocat/live-code-scope.js
1 parent 53796a9 commit df8ee81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/@primer/gatsby-theme-doctocat/live-code-scope.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const ReactRouterLink = ({to, ...props}) => {
1212
return <a href={to} {...props} />
1313
}
1414

15-
// don't attempt to export this below because octicons-react's default export is deprecated
16-
delete octicons.default
15+
// Exclude octicons-react's default export because it's deprecated
16+
const {default: _, ...octiconComponents} = octicons
1717

1818
export default function resolveScope(metastring) {
1919
return {

0 commit comments

Comments
 (0)