-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.2.0
-
Component/s: UI
-
Browser:
-
Sprint:nxGang Sprint 10.2.9
Using the nuxeo-data-table with the infinite scrolling mode (paginable attribute) is broken in Web UI search. Whenever you click a search criteria in the search form, the the form appears and stays as loading. There is the following error in the console:
nuxeo-search-form.html:838 Uncaught TypeError: Cannot read property 'then' of undefined at HTMLElement._fetch (nuxeo-search-form.html:838) at HTMLElement._paramsChanged (nuxeo-search-form.html:636) at Object.runMethodEffect [as fn] (property-effects.html:818) at runEffectsForProperty (property-effects.html:162) at runEffects (property-effects.html:128) at HTMLElement._propertiesChanged (property-effects.html:1711) at HTMLElement._flushProperties (properties-changed.html:341) at HTMLElement._flushProperties (property-effects.html:1559) at HTMLElement._invalidateProperties (property-effects.html:1531) at runNotifyEffects (property-effects.html:261)
it's because the data-table does not return the promise in the _fetchPage method.