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

Console error and completion failure when searching "Mo" for "Robert Mover". #28

Open
kfogel opened this issue Aug 6, 2015 · 0 comments

Comments

@kfogel
Copy link
Member

kfogel commented Aug 6, 2015

Today on the hmis.opentechstrategies.com demo server (i.e., where both client, intermediary server, and java server are hosted), we encountered this problem, as of commit bd1eacc in the openhmis-intake client code and commit 63507c6de in the OpenHMIS server code.

Entering "M" and even then "Mo" in the search box does not find "Robert Mover". But, each time I typed "M", I saw another accumulation of a particular error in the in-browser console -- the last line of the transcript below (although the interior warning, the deprecation warning, is also interesting so I've left it in even though it's probably not relevant to this bug):

TypeError: entity[matchingTermsCopy[j]] is null index.js:352:0

"Deprecation warning: moment construction falls back to js Date.             \
 This is discouraged and will be removed in upcoming major release.          \
 Please refer to https://github.com/moment/moment/issues/1407 for more info.
deprecate@http://hmis.opentechstrategies.com:3000/js/lib/moment.js:738:42
@http://hmis.opentechstrategies.com:3000/js/lib/moment.js:826:50
@http://hmis.opentechstrategies.com:3000/js/lib/moment.js:10:21
@http://hmis.opentechstrategies.com:3000/js/lib/moment.js:7:1
" moment.js:732:12

TypeError: entity[matchingTermsCopy[j]] is null index.js:352:0          [22 repetitions]

Other names complete fine. Typing "W" completes "William" and "Williams" in both first and last names. Something's going on with some records that causes them to 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

1 participant