@primer/gatsby-theme-doctocat 4.6.2 → 4.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @primer/gatsby-theme-doctocat
2
2
 
3
+ ## 4.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`af1a0e1`](https://github.com/primer/doctocat/commit/af1a0e1bab8df4d241a3e1e760fe6924b887372f) [#621](https://github.com/primer/doctocat/pull/621) Thanks [@josepmartins](https://github.com/josepmartins)! - Fixes selected state when the path is `undefined`
8
+
3
9
  ## 4.6.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/gatsby-theme-doctocat",
3
- "version": "4.6.2",
3
+ "version": "4.6.3",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -156,7 +156,7 @@ function PrimerNavItems({siteMetadata, items, path, pathPrefix}) {
156
156
  <UnderlineNav.Link
157
157
  key={index}
158
158
  href={item.url}
159
- selected={item.url === siteMetadata.header.url + pathPrefix + path}
159
+ selected={item.url === siteMetadata.header.url + (pathPrefix || '') + (path || '')}
160
160
  sx={{fontSize: 2, lineHeight: 'condensed'}}
161
161
  >
162
162
  {item.title}