mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-12 15:01:38 +03:00
landscape: fix link route breaking popover
When you're on a link page, hitting the settings popover will trigger an error since the LinkResource matches the path. This makes it so that it only matches numerical indexes.
This commit is contained in:
parent
6bb62d802b
commit
6750a9dc1c
@ -95,7 +95,7 @@ export function LinkResource(props: LinkResourceProps) {
|
||||
}}
|
||||
/>
|
||||
<Route
|
||||
path={relativePath("/:index/:commentId?")}
|
||||
path={relativePath("/:index(\\d+)/:commentId?")}
|
||||
render={(props) => {
|
||||
const index = bigInt(props.match.params.index);
|
||||
const editCommentId = props.match.params.commentId || null;
|
||||
|
Loading…
Reference in New Issue
Block a user