Full Page Error on Search in Filter in Table View
Hi, For certain dataflows, attempting to search inside a dimension filter in the table view causes the Data Explorer to crash with the "Whoops something went wrong on our end error". I've attached a set of structures and data that cause this issue (I've taken the liberty of uploading the structures to staging:SIS-CC-stable, but apparently I lack access to load the data).
Further details
- The error only occurs if the Hide Filter Items Without Data checkbox is ticked
- I believe it only occurs if a parent code item has no data but its children do. The parent is removed from the display, then the search logic errors out when it gets to it.
Package Versions Build from Data Explorer source commit: 08c03a4a. Package versions restored were:
- dotstatsuite-components: 2.3.2
- dotstatsuite-visions: 1.0.34
- dotstatsuite-ui-header: 2.1.0
- dotstatsuite-ui-footer: 3.4.8
- dotstatsuite-ui-components: 2.0.0
- dotstatsuite-d3-charts: 5.2.0
- dotstatsuite-sdmxjs: 1.5.0
Here's the error in the console:
TypeError: Cannot read property 'label' of undefined
at e (utils.js:34)
at e.f (utils.js:53)
at e.@@transducer/step (_xwrap.js:15)
at _reduce.js:10
at c (_reduce.js:51)
at _curry3.js:30
at t (_curry1.js:16)
at Object.je [as engine] (utils.js:46)
at qo (with-scope-list.js:103)
at Zo (with-scope-list.js:162)
Here's a screenshot of the filter field. Entering anything at all in this field immediately causes the crash.