feat: custom-labels-for-attendee-location-fields (#25070)
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
This commit is contained in:
1 parent
452729f4ab
commit
d50a7b9d00
1 file changed
+2
-1
@@ -116,6 +116,7 @@ export const defaultLocations: DefaultEventLocationType[] = [
|
||||
iconUrl: "/map-pin-dark.svg",
|
||||
category: "in person",
|
||||
linkType: "static",
|
||||
supportsCustomLabel: true,
|
||||
},
|
||||
{
|
||||
default: true,
|
||||
@@ -130,6 +131,7 @@ export const defaultLocations: DefaultEventLocationType[] = [
|
||||
iconUrl: "/message-pin.svg",
|
||||
category: "other",
|
||||
linkType: "static",
|
||||
supportsCustomLabel: true,
|
||||
},
|
||||
{
|
||||
default: true,
|
||||
@@ -312,7 +314,6 @@ export const privacyFilteredLocations = (locations: LocationObject[]): PrivacyFi
|
||||
if (location.displayLocationPublicly || !eventLocationType) {
|
||||
return location;
|
||||
} else {
|
||||
|
||||
const { address: _1, link: _2, hostPhoneNumber: _3, ...privacyFilteredLocation } = location;
|
||||
logger.debug("Applied Privacy Filter", location, privacyFilteredLocation);
|
||||
return privacyFilteredLocation;
|
||||
|
||||
Reference in new issue
Block a user