diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index d1a1dc081..a0a3afb9e 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -57,7 +57,7 @@ export class Home extends React.Component, IFilterListsS filterMethod: (filter: any, row: any) => row[filter.id].join().toUpperCase() .includes(filter.value.toUpperCase()), sortMethod: (a: any, b: any) => a.join().toUpperCase() > b.join().toUpperCase() ? 1 : -1, - Cell: (cell: any) =>
{cell.value.join(", ")}
, + Cell: (cell: any) =>
{cell.value.map((e: any) => e.name).join(", ")}
, style: { whiteSpace: "inherit"}, width: 100, headerClassName: "hidden-xs", @@ -89,10 +89,15 @@ export class Home extends React.Component, IFilterListsS interface IFilterListSummaryDto { id: number; name: string; - languages: string[]; + languages: IListLanguageDto[]; viewUrl: string; } +interface IListLanguageDto { + name: string; + iso6391: string; +} + //TODO: deduplicate function (maybe to a utils.js) also in ListDetailsModal.tsx function SubscribeUrl(props: any) { return