fix: cycle list page mutation fix (#661)

* fix: cycle list page mutation fix

* fix: cycle mutation fix
This commit is contained in:
Anmol Singh Bhatia 2023-03-31 18:31:21 +05:30 committed by GitHub
parent abe34ad7b1
commit 6055f5c4ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View file

@ -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());