Skip to content

Commit 6134c9c

Browse files
atrakhConvex, Inc.
authored and
Convex, Inc.
committed
sanitize passHref from defaultlink (#36433)
GitOrigin-RevId: d3c5617eafc3049c030dac0f3878bc3651c77c4c
1 parent 3e0ad52 commit 6134c9c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

npm-packages/@convex-dev/design-system/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@convex-dev/design-system",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"type": "module",
55
"sideEffects": false,
66
"files": [

npm-packages/@convex-dev/design-system/src/UIContext.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { omit } from "lodash-es";
12
import {
23
ComponentType,
34
createContext,
@@ -45,7 +46,7 @@ function DefaultLink({
4546
? href
4647
: `${href.pathname}${encodeQuery(href.query)}${href.hash || ""}`
4748
}
48-
{...props}
49+
{...omit(props, "passHref")}
4950
>
5051
{children}
5152
</a>

0 commit comments

Comments
 (0)