diff --git a/src/services/projectService.ts b/src/services/projectService.ts index a0107e31..9d469043 100644 --- a/src/services/projectService.ts +++ b/src/services/projectService.ts @@ -33,7 +33,17 @@ export async function findUserByProject( * @returns {Promise>} */ export async function getProjectList(teamId: Team['teamId'], axiosConfig: AxiosRequestConfig = {}) { - return authAxios.get(`/team/${teamId}/project`, axiosConfig); + return authAxios.get(`/team/${teamId}/project`, { + transformResponse: (data) => { + const parsedData: Project[] = JSON.parse(data); + return parsedData.map((data) => { + data.startDate = data.startDate && new Date(data.startDate); + data.endDate = data.endDate && new Date(data.endDate); + return data; + }); + }, + ...axiosConfig, + }); } /**