mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
rm lists from list url path
This commit is contained in:
parent
ad37bc4dee
commit
e9f233bb2b
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ interface Props {
|
|||
};
|
||||
|
||||
export const ListInfoButton = (props: RouteComponentProps & Props) => {
|
||||
const listPath = `/lists/${props.list.id}`;
|
||||
const listPath = `/${props.list.id}`;
|
||||
return (
|
||||
<Button
|
||||
type="primary"
|
||||
|
|
|
|||
|
|
@ -26,5 +26,5 @@ export const ListDrawer = (props: Props) => {
|
|||
{...rp} />
|
||||
: props.lists && props.lists.length && <Redirect to={{ pathname: "/", }} />;
|
||||
};
|
||||
return <Route path="/lists/:id" render={renderDrawer} />;
|
||||
return <Route path="/:id" render={renderDrawer} />;
|
||||
};
|
||||
Loading…
Reference in a new issue