-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: 8.10
-
Component/s: Spreadsheet, Web UI
-
Release Notes Summary:Spreadsheet can be used when page provider definition does not contain any aggregate
-
Backlog priority:800
-
Sprint:nxGang Sprint 9.10.1
The javascript error:
Uncaught TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>) at HTMLElement._show (nuxeo-spreadsheet-button.html:104) at handler (elements.html:3606) at HTMLElement.decorated (elements.html:7563) at HTMLElement.fire (elements.html:4383) at Object.fire (elements.html:3955) at Object.forward (elements.html:4252) at Object.click (elements.html:4237) at HTMLElement.handleNative (elements.html:3845)
Caused by this line in https://github.com/nuxeo/nuxeo-platform-spreadsheet/blob/master/nuxeo-platform-spreadsheet-web-ui/src/main/resources/web/nuxeo.war/ui/nuxeo-spreadsheet/nuxeo-spreadsheet-button.html
Object.keys(provider.aggregations).forEach(function(key)