mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
wait until lists retrieved from api before redirecting on 'invalid' list url
This commit is contained in:
parent
2019624267
commit
2b8ae9f9e2
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ export class ListsTable extends React.Component<RouteComponentProps, State> {
|
|||
const list = this.state.lists.find(l => l.id === +props.match.params.id);
|
||||
return list
|
||||
? <ListDetailsDrawer list={list as List} {...props} {...this.state} />
|
||||
: <Redirect to={{ pathname: "/", }} />
|
||||
: this.state.lists && this.state.lists.length && <Redirect to={{ pathname: "/", }} />
|
||||
}} />
|
||||
</span>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue