Skip to content

Commit

Permalink
fix: 일정기간이 하루 이하인것 간트에서 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
jungmyunggi committed Jun 7, 2024
1 parent 9b0569e commit 344eb5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/project/ProjectGantt.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ export default function ProjectGantt() {
.map((plan, index) => {
const startDate = parseDate(plan.startedAt);
const endDate = parseDate(plan.endedAt);
const duration = plan.duration;
const duration = (new Date(endDate) - new Date(startDate)) / (1000 * 60 * 60 * 24);
console.log(plan + '@');
if (duration === 0) {
if (duration < 1) {
return null;
}

Expand Down

0 comments on commit 344eb5b

Please sign in to comment.