- Fixed issue with events not being mapped correctly when fetched(missing attributes)

- Fixed issue with editing of events because of incorrect attribute name
- Color events created by other user, but assigned to current user in the current user's color
This commit is contained in:
Dejan
2024-11-18 17:46:01 +01:00
parent d8e7dc6bf7
commit 89d00cdead
4 changed files with 24 additions and 13 deletions

View File

@ -84,6 +84,7 @@ export const useGetEvents = () => {
const eventColor = profileData?.eventColor || colorMap.pink;
return {
...event,
id: event.id || Math.random().toString(36).slice(2, 9), // Generate temp ID if missing
title: event.title,
start: new Date(event.startDate.seconds * 1000),