default time to midnight if it is null when filtering w/ burnettk

This commit is contained in:
jasquat 2022-11-17 16:47:29 -05:00
parent 4a9e4c820c
commit c744dd8867
2 changed files with 6 additions and 6 deletions

View File

@ -330,19 +330,19 @@ export default function ProcessInstanceListTable({
const startFromSeconds = convertDateAndTimeStringsToSeconds( const startFromSeconds = convertDateAndTimeStringsToSeconds(
startFromDate, startFromDate,
startFromTime startFromTime || '00:00:00'
); );
const startToSeconds = convertDateAndTimeStringsToSeconds( const startToSeconds = convertDateAndTimeStringsToSeconds(
startToDate, startToDate,
startToTime startToTime || '00:00:00'
); );
const endFromSeconds = convertDateAndTimeStringsToSeconds( const endFromSeconds = convertDateAndTimeStringsToSeconds(
endFromDate, endFromDate,
endFromTime endFromTime || '00:00:00'
); );
const endToSeconds = convertDateAndTimeStringsToSeconds( const endToSeconds = convertDateAndTimeStringsToSeconds(
endToDate, endToDate,
endToTime endToTime || '00:00:00'
); );
if (isTrueComparison(startFromSeconds, '>', startToSeconds)) { if (isTrueComparison(startFromSeconds, '>', startToSeconds)) {
setErrorMessage({ setErrorMessage({

View File

@ -6,9 +6,9 @@ import PaginationForTable from '../components/PaginationForTable';
import ProcessBreadcrumb from '../components/ProcessBreadcrumb'; import ProcessBreadcrumb from '../components/ProcessBreadcrumb';
import { import {
getPageInfoFromSearchParams, getPageInfoFromSearchParams,
convertSecondsToFormattedDateString,
modifyProcessModelPath, modifyProcessModelPath,
unModifyProcessModelPath, unModifyProcessModelPath,
convertSecondsToFormattedDateTime,
} from '../helpers'; } from '../helpers';
import HttpService from '../services/HttpService'; import HttpService from '../services/HttpService';
@ -49,7 +49,7 @@ export default function ProcessInstanceLogList() {
data-qa="process-instance-show-link" data-qa="process-instance-show-link"
to={`/admin/process-models/${modifiedProcessModelId}/process-instances/${rowToUse.process_instance_id}/${rowToUse.spiff_step}`} to={`/admin/process-models/${modifiedProcessModelId}/process-instances/${rowToUse.process_instance_id}/${rowToUse.spiff_step}`}
> >
{convertSecondsToFormattedDateString(rowToUse.timestamp)} {convertSecondsToFormattedDateTime(rowToUse.timestamp)}
</Link> </Link>
</td> </td>
</tr> </tr>