diff --git a/src/resources/destinations.tsx b/src/resources/destinations.tsx index 8a249a1b..89c7a9c8 100644 --- a/src/resources/destinations.tsx +++ b/src/resources/destinations.tsx @@ -27,6 +27,7 @@ import { useNotify, useRefresh, useTranslate, + DateFieldProps, } from "react-admin"; import { DATE_FORMAT } from "../components/date"; @@ -92,6 +93,14 @@ const DestinationTitle = () => { ); }; +const RetryDateField = (props: DateFieldProps) => { + const record = useRecordContext(props); + if (props.source && get(record, props.source) === 0) { + return + } + return +} + export const DestinationList = (props: ListProps) => { return ( { `${id}/show/rooms`} bulkActionButtons={false}> - +