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

Opening hours are sometimes shown incorrectly in resource page #276

Open
evehmane opened this issue Jun 17, 2017 · 0 comments
Open

Opening hours are sometimes shown incorrectly in resource page #276

evehmane opened this issue Jun 17, 2017 · 0 comments
Labels

Comments

@evehmane
Copy link
Contributor

evehmane commented Jun 17, 2017

Steps to reproduce:

  • Go to resource search page (today should be selected)
  • Change date to some day where opening hours are different than today (for example weekend vs. not weekend)
  • Click resource link on the left
  • Now on the resource page opening hours are shown correctly on the timeline
  • Refresh the page
  • Now it looks that the resource is closed the whole day, because the opening hours of the selected day are not used

This seems to happen because when resource page is refreshed, AppContainer fetches all resources with today's opening hours and ResourcePageContainer fetches the specific resource with selected day's opening hours. When the former request finishes after the latter, state (data.resources) will have today's opening hours.

@evehmane evehmane added the bug label Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant