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

TypeError: mapping.Conditions is undefined #73

Open
kgkg opened this issue Apr 12, 2019 · 0 comments
Open

TypeError: mapping.Conditions is undefined #73

kgkg opened this issue Apr 12, 2019 · 0 comments

Comments

@kgkg
Copy link

kgkg commented Apr 12, 2019

In browser (any) using dist/autocomplete.js we get error in console.log:
TypeError: mapping.Conditions is undefined: autocomplete.js:112:13

Completion works though.
It happens every time right before (of after) ajax callback.

If we change line 112 of js file (I know .ts should be changed, but I did this for quick experiment) to:
if (mapping.Conditions) {
mapping.Conditions.forEach(eventIdentifier);
}

Then another error appears:
TypeError: mapping.Callback is undefined: autocomplete.js:116:17

Changing this to:
if (match === true && mapping.Callback) {
mapping.Callback.call(params, event);
}

Fixes it.
I can prepare pull request with .ts but I just wanted to know if the way I fixed it is correct.

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

1 participant