@marlinjai/clearify 1.6.3 → 1.6.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marlinjai/clearify",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "An open-source documentation site generator. Turn markdown into beautiful docs.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -254,7 +254,7 @@ export function Sidebar({ sections, open, onClose }: SidebarProps) {
254
254
  setSelectedSectionId(id);
255
255
  const section = sections.find((s) => s.id === id);
256
256
  if (section) {
257
- const firstPath = findFirstPath(section.navigation) ?? section.basePath;
257
+ const firstPath = section.basePath ?? findFirstPath(section.navigation);
258
258
  if (firstPath && firstPath !== location.pathname) {
259
259
  navigate(firstPath);
260
260
  }