ui-search records are not being rendered

Description

(I think this is probably a stripes-components bug, but I will move it to a different project if it turns out that I am doing something dumb in my invocation.)

As noted in UISE-19, the ui-search module is now correctly fetching the six sample records from Heikki's mock module. But the records don't display: for some reason, <MultiColumnList> doesn't seem to re-render the embedded <MCLRenderer> when the records appear, so we're left with the "No results found. Please check your filters" message from the initial render.

This might be a reaction to some key field not being in the schema ... or something.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Mike Taylor December 5, 2017 at 2:21 PM

Aha – it's now apparent that https://github.com/folio-org/stripes-components/blob/master/lib/MultiColumnList/MCLRenderer.js#L618 is throwing an exception, because it's looking up the value of the field barcode, which is not defined, then trying to invoke toString on the result. So this is caused simply by my invocation of <SearchAndSort> (and hence its invocation of <MultiColumnList>) trying to display a field that is not in the schema for the relevant records.

I can fix that in the invocation of course, so I will move this issue into UISE and rename it. But I wonder whether <MultiColumnList> ought to do something more polite when asked to render a non-existent field?

Done

Details

Assignee

Reporter

Labels

Priority

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created December 5, 2017 at 12:25 PM
Updated December 5, 2017 at 4:55 PM
Resolved December 5, 2017 at 3:13 PM
TestRail: Cases
TestRail: Runs

Flag notifications