handle lists with no tags

This commit is contained in:
Collin M. Barrett 2019-08-07 15:19:04 -05:00
parent 32e137ec1b
commit 8f93fe1368

View file

@ -96,8 +96,9 @@ export class AllListsTable extends React.Component<{}, State> {
<Table.Column<List>
title="Tags"
dataIndex={nameof<List>("tagIds")}
width={200}
render={(tagIds: number[]) =>
<TagCloud tags={this.state.tags.filter((t: Tag) => tagIds.includes(t.id))} />} />
tagIds ? <TagCloud tags={this.state.tags.filter((t: Tag) => tagIds.includes(t.id))} /> : null} />
<Table.Column<List> title="Subscribe"
dataIndex={nameof<List>("viewUrl")}
width={123}