diff --git a/src/FilterLists.Web.V2/src/components/listsTable/ListsTable.tsx b/src/FilterLists.Web.V2/src/components/listsTable/ListsTable.tsx index d55644291..780cfdc6e 100644 --- a/src/FilterLists.Web.V2/src/components/listsTable/ListsTable.tsx +++ b/src/FilterLists.Web.V2/src/components/listsTable/ListsTable.tsx @@ -1,6 +1,6 @@ import { Table } from 'antd'; import React from 'react'; -import { Route, RouteComponentProps } from 'react-router-dom'; +import { Redirect, Route, RouteComponentProps } from 'react-router-dom'; import { Language } from '../../interfaces/Language'; import { List } from '../../interfaces/List'; @@ -141,7 +141,7 @@ export class ListsTable extends React.Component { const list = this.state.lists.find(l => l.id === +props.match.params.id); return list ? - : null //TODO: redirect or 404 for invalid list id + : }} /> );