mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix null updated date in ListsTable
This commit is contained in:
parent
77e98824d2
commit
3ed05bb81c
2 changed files with 9 additions and 7 deletions
|
|
@ -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 =>
|
||||
|
|
@ -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;
|
||||
Loading…
Reference in a new issue