picocrank 1.13.1 → 1.13.2

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": "picocrank",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "description": "A set of zero dependency Vue components built on the Femtocrank global CSS theme.",
5
5
  "main": "vite.config.js",
6
6
  "scripts": {
@@ -107,6 +107,10 @@ function getNavigationLinks() {
107
107
  }
108
108
 
109
109
  function isActive(link) {
110
+ if (!route || !link) {
111
+ return false
112
+ }
113
+
110
114
  // If link has a 'to' object with a name, compare route name and params
111
115
  if (link.to && typeof link.to === 'object' && link.to.name) {
112
116
  // Compare route names first