-
Type: Bug
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.4.0
-
Fix Version/s: None
-
Component/s: UI
-
Backlog priority:500
-
Browser:
this.view.$
can be empty/undefined in many cases for nuxeo-results. Causes Uncaught TypeError: Cannot read property 'list' of undefined when not properly checked.
https://github.com/nuxeo/nuxeo-web-ui/blob/master/elements/nuxeo-results/nuxeo-results.js#L347
The predicate should probably be:
return this.view && this.view.$ && this.view.$.list ? this.view.$.list.items : [];