mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
tidy ListDrawer render logic
This commit is contained in:
parent
931c874e06
commit
90c835fd4d
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ export const ListDrawer = (props: Props) => {
|
|||
syntax={list.syntaxId ? props.syntaxes.find(s => s.id === list.syntaxId) : undefined}
|
||||
tags={list.tagIds && props.tags.filter((t: Tag) => list.tagIds.includes(t.id))}
|
||||
{...rp} />
|
||||
: (props.lists && props.lists.length && <Redirect to={{ pathname: "/", }} />) || null;
|
||||
: (props.lists && props.lists.length) ? <Redirect to={{ pathname: "/", }} /> : null;
|
||||
};
|
||||
return <Route path="/lists/:listSlug" render={renderDrawer} />;
|
||||
};
|
||||
Loading…
Reference in a new issue