fix null updated date in ListsTable

This commit is contained in:
Collin M. Barrett 2018-09-24 21:35:23 -05:00
parent 77e98824d2
commit 3ed05bb81c
2 changed files with 9 additions and 7 deletions

View file

@ -7,9 +7,9 @@
namespace FilterLists.Services.FilterList.MappingProfiles
{
[UsedImplicitly]
public class ListIndexRecordMappingProfile : Profile
public class ListMappingProfile : Profile
{
public ListIndexRecordMappingProfile() =>
public ListMappingProfile() =>
CreateMap<Data.Entities.FilterList, List>()
.ForMember(dest => dest.Id,
opt => opt.MapFrom(src =>

View file

@ -27,8 +27,10 @@ const sortMethod = (a: string, b: string) =>
: -1;
const Cell = (updatedDate: string) =>
<div>
{moment(updatedDate).isValid()
? moment(updatedDate).format("l")
: null}
</div>;
updatedDate
? <div>
{moment(updatedDate).isValid()
? moment(updatedDate).format("l")
: null}
</div>
: null;