Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: type error on booking cancelled page #16716

Merged
merged 3 commits into from
Sep 19, 2024
Merged

fix: type error on booking cancelled page #16716

merged 3 commits into from
Sep 19, 2024

Conversation

Udit-takkar
Copy link
Contributor

@Udit-takkar Udit-takkar commented Sep 19, 2024

What does this PR do?

  • Fixes #XXXX (GitHub issue number)
  • Fixes CAL-XXXX (Linear issue number - should be visible at the bottom of the GitHub issue description)

You won't be able to reproduce it locally as this only happens for some users. i tried hardcoding the API response from affected users to my local setup to reproduce it and found the error line

Screenshot 2024-09-19 at 2 00 13 PM

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • N/A I have added a Docs issue here if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • N/A I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

Go to /bookings/cancelled page

Checklist

@Udit-takkar Udit-takkar added the 🚨 urgent Created by Linear-GitHub Sync label Sep 19, 2024
@graphite-app graphite-app bot requested a review from a team September 19, 2024 08:37
@keithwillcode keithwillcode added core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO labels Sep 19, 2024
@dosubot dosubot bot added bookings area: bookings, availability, timezones, double booking 🐛 bug Something isn't working labels Sep 19, 2024
@@ -323,7 +323,7 @@ function BookingListItem(booking: BookingItemProps) {
const urlSearchParams = new URLSearchParams({
allRemainingBookings: isTabRecurring.toString(),
});
if (booking.attendees[0].email) urlSearchParams.set("email", booking.attendees[0].email);
if (booking.attendees?.[0]?.email) urlSearchParams.set("email", booking.attendees[0].email);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a check here

Copy link

graphite-app bot commented Sep 19, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (09/19/24)

1 reviewer was added to this PR based on Keith Williams's automation.

"Add ready-for-e2e label" took an action on this PR • (09/19/24)

1 label was added to this PR based on Keith Williams's automation.

Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 9:57am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 9:57am

Copy link
Contributor

E2E results are ready!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bookings area: bookings, availability, timezones, double booking 🐛 bug Something isn't working core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO ready-for-e2e 🚨 urgent Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants