Bug 40121: Fix 'Cannot read properties of undefined'
Same fix as commit7bc3b24827Bug 40344: Fix KohaTable_spec.ts > Cannot read properties of undefined (reading 'description') Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit15f8acf546) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
2b7d149655
commit
d8ea7cfe2b
|
|
@ -147,7 +147,7 @@ describe("Filters", () => {
|
||||||
|
|
||||||
cy.window().then(win => {
|
cy.window().then(win => {
|
||||||
win.categories_map = patrons.reduce((map, p) => {
|
win.categories_map = patrons.reduce((map, p) => {
|
||||||
map[p.category_id] = p.category_id;
|
map[p.category_id.toLowerCase()] = p.category_id;
|
||||||
return map;
|
return map;
|
||||||
}, {});
|
}, {});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue