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

Uncaught TypeError: Cannot add property _weekdaysMinRegex, object is not extensible #261

Open
evehmane opened this issue Jun 9, 2017 · 1 comment
Labels

Comments

@evehmane
Copy link
Contributor

evehmane commented Jun 9, 2017

This happens sometimes on resource page, right after creating a reservation (when user is redirected to resource page). I think it's inside DateSelector component.

@evehmane evehmane added the bug label Jun 9, 2017
@evehmane
Copy link
Contributor Author

evehmane commented Jun 18, 2017

This only happens to me on localhost.

Steps to reproduce:

  • Go to front page (on localhost)
  • Click some free slot on a timeline to end up in reservation create page with some datetime in url
  • Refresh page
  • Fill and save the form (EDIT: another way is to just go to the front page again by clicking link in top bar)

What should happen:

  • User should be redirected to resource page and "reservation success modal" should be shown

What actually happens:

  • Url is changed to resource page url but the error occurs before anything is rendered, so user still sees the reservation form

The error occurs in moment.js's code and it's probably related to date pickers. If user has already been in some other page before reservation create page (in other words, if you don't refresh the page in the steps to reproduce), this error does not occur.

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