in client/routes/domain/workflow-archival/helpers/get-query-params.js [22:42]
export default ({
endTime,
workflowName,
statusValue,
startTime,
workflowId,
}) => {
if (!startTime || !endTime) {
return null;
}
const includeStatus = statusValue !== '-1';
return {
endTime,
startTime,
...(includeStatus && { status: statusValue }),
...(workflowId && { workflowId }),
...(workflowName && { workflowName }),
};
};