Enhance participant update handling and UI responsiveness in DiaryView
This commit improves the participant update process by ensuring the latest participant data is fetched from the database before emitting socket events. It also refines the DiaryView component's UI, adding better handling for dropdowns and member group selections, enhancing user experience. Additionally, new CSS styles are introduced for member group select elements to ensure consistent appearance across browsers.
This commit is contained in:
@@ -64,6 +64,7 @@ export const emitParticipantRemoved = (clubId, dateId, participantId) => {
|
||||
};
|
||||
|
||||
export const emitParticipantUpdated = (clubId, dateId, participant) => {
|
||||
console.log('📡 [Socket] Emit participant:updated für Club', clubId, 'Date', dateId, 'Participant:', participant);
|
||||
emitToClub(clubId, 'participant:updated', { dateId, participant });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user