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:
ryjm 2020-11-21 16:46:29 -05:00
parent 6bb62d802b
commit 6750a9dc1c

View File

@ -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;