fix: cycle list page mutation fix (#661)
* fix: cycle list page mutation fix * fix: cycle mutation fix
This commit is contained in:
parent
abe34ad7b1
commit
6055f5c4ee
2 changed files with 21 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ export const timeAgo = (time: any) => {
|
|||
return time;
|
||||
};
|
||||
|
||||
export const getDateRangeStatus = (startDate: string | null, endDate: string | null) => {
|
||||
export const getDateRangeStatus = (startDate: string | null | undefined, endDate: string | null | undefined) => {
|
||||
if (!startDate || !endDate) return "draft";
|
||||
|
||||
const today = renderDateFormat(new Date());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue