Skip to content

Commit

Permalink
fixed calendar crashing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deepaksharma-dev committed Jun 26, 2024
1 parent 76adbb4 commit 27215ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Calendar/Calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const EventCalendar = (props) => {
const formattedEvents = response?.map((event) => ({
id: event?.id,
title: event?.name,
start: new Date(event?.start_date)?.setHours(5),
end: new Date(event?.end_date)?.setHours(5),
start: new Date(new Date(event?.start_date)?.setHours(5)),
end: new Date(new Date(event?.end_date)?.setHours(5)),
assigned_to: {
username: event?.assgined_to.username,
email: event?.assgined_to.email,
Expand Down

0 comments on commit 27215ad

Please sign in to comment.