Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix(erp): let external link attrs win over spread props

sidgaikwad0b414d5a2884
diff --git a/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx b/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx
index f8a9b5e945..038e6427e9 100644
--- a/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx
+++ b/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx
@@ -229,10 +229,10 @@ const NavigationIconLink = forwardRef<
aria-current={isActive}
ref={ref}
to={link.to}
+ {...props}
{...(link.external
? { target: "_blank", rel: "noopener noreferrer" }
: {})}
- {...props}
onClick={onClick}
className={cn(classes, props.className)}
prefetch={link.external ? "none" : "intent"}