@orsetra/shared-ui 1.0.53 → 1.0.54

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.
@@ -244,16 +244,12 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
244
244
  const isActive = pathname === item.href || pathname.startsWith(`${item.href}/`)
245
245
 
246
246
  const handleClick = (e: React.MouseEvent) => {
247
- e.preventDefault()
248
- console.log('Sidebar handleClick - item.name:', item.name)
249
- console.log('Sidebar handleClick - item.href:', item.href)
250
247
  const href = item.href
251
- const path = href.startsWith('http://') || href.startsWith('https://')
252
- ? new URL(href).pathname
253
- : href
254
- console.log('Sidebar handleClick - path:', path)
255
- console.log('Navigating to:', path)
256
- window.location.href = path
248
+ if (href.startsWith('http://') || href.startsWith('https://')) {
249
+ e.preventDefault()
250
+ const path = new URL(href).pathname
251
+ window.location.href = path
252
+ }
257
253
  }
258
254
 
259
255
  return (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",