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 error on EditListingPage when availabilityPlan doesn't exist #130

Merged
merged 2 commits into from
Dec 30, 2020

Conversation

OtterleyW
Copy link
Contributor

@OtterleyW OtterleyW commented Dec 30, 2020

When the listing is created, there's a moment when the availability plan doesn't exist yet until the user completes the availability tab. It's possible to add availability exceptions before the availability plan, so we need to use the default timezone (from browser or Etc/UTC) when fetching the availability exceptions if the plan doesn't exist yet. Otherwise, there would be an error in loadData function.

@OtterleyW OtterleyW force-pushed the fix-error-on-edit-listing-page branch from 4a3a94e to ff44b04 Compare December 30, 2020 08:55
@OtterleyW OtterleyW force-pushed the fix-error-on-edit-listing-page branch from ff44b04 to cc504b2 Compare December 30, 2020 10:40
@OtterleyW OtterleyW force-pushed the fix-error-on-edit-listing-page branch from cc504b2 to e355ebf Compare December 30, 2020 10:48
@OtterleyW OtterleyW merged commit d7491b8 into master Dec 30, 2020
@OtterleyW OtterleyW deleted the fix-error-on-edit-listing-page branch December 30, 2020 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant