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

Undefined is not an object (evaluating 'this.$stateParams.search=r') #1330

Open
FelixMalfait opened this issue Mar 26, 2017 · 1 comment
Open

Comments

@FelixMalfait
Copy link

Description

I tracked that on some rare occasions my users were getting the following error:
undefined is not an object (evaluating 'this.$stateParams.search=r')
https://github.com/marmelab/ng-admin/blob/master/src/javascripts/ng-admin/Crud/list/ListLayoutController.js#L122

this.$stateParams seems to be undefined for no apparent reason.

The error was detected on Chrome andSafari.

Steps to Reproduce

Unfortunately, I haven't been able to reproduce this issue. I've been looking for sometimes but this error happens quite rarely (1/2.000 page views). I'd love to do the fix myself but I'm looking for new ideas because I'm running out of it.
I have a feeling that this could be related to custom pages (altough the error is in the ListLayoutController; maybe when switching from a custom page to a list?).

Thanks for your help!

@Kmaschta
Copy link
Contributor

Kmaschta commented Mar 30, 2017

Tough one.

Are you able to write a unit/E2E test or a script with a lot of fixtures to try to reproduce this error?

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

No branches or pull requests

2 participants