On seats, hide attendees if option is selected (#6767)
* On seats, hide attendees if option is selected * Remove unused line
This commit is contained in:
1 parent
0faf294367
commit
60f7528cbc
2 files changed
+5
-8
No files matched your search
@@ -620,6 +620,11 @@ async function handler(req: NextApiRequest & { userId?: number | undefined }) {
|
||||
});
|
||||
|
||||
const newSeat = booking.attendees.length !== 0;
|
||||
|
||||
if (!evt.seatsShowAttendees) {
|
||||
evt.attendees = invitee;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remember objects are passed into functions as references
|
||||
* so if you modify it in a inner function it will be modified in the outer function
|
||||
|
||||
Reference in new issue
Block a user