Dynamic group link for more than 2 user fixed (#2416)
This commit is contained in:
1 parent
173e7846e8
commit
a551919152
3 files changed
+17
-6
No files matched your search
@@ -261,9 +261,15 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
|
||||
eventTypeObject.schedule = null;
|
||||
eventTypeObject.availability = [];
|
||||
|
||||
const dynamicNames = isDynamicGroup
|
||||
? users.map((user) => {
|
||||
return user.name || "";
|
||||
})
|
||||
: [];
|
||||
|
||||
const profile = isDynamicGroup
|
||||
? {
|
||||
name: getGroupName(usernameList),
|
||||
name: getGroupName(dynamicNames),
|
||||
image: null,
|
||||
slug: typeParam,
|
||||
theme: null,
|
||||
|
||||
@@ -168,9 +168,15 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
|
||||
|
||||
const isDynamicGroupBooking = users.length > 1;
|
||||
|
||||
const dynamicNames = isDynamicGroupBooking
|
||||
? users.map((user) => {
|
||||
return user.name || "";
|
||||
})
|
||||
: [];
|
||||
|
||||
const profile = isDynamicGroupBooking
|
||||
? {
|
||||
name: getGroupName(usernameList),
|
||||
name: getGroupName(dynamicNames),
|
||||
image: null,
|
||||
slug: eventTypeSlug,
|
||||
theme: null,
|
||||
|
||||
Reference in new issue
Block a user