From ee07741939b5594bcfd2e1795c4e1a7fdb9dbc9b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 28 Jul 2025 10:08:34 +0200 Subject: [PATCH] Bug 40121: Fix 'Cannot read properties of undefined' Same fix as commit 7bc3b24827799bee61a6672db78e12a70ee78ccf Bug 40344: Fix KohaTable_spec.ts > Cannot read properties of undefined (reading 'description') Signed-off-by: Nick Clemens --- t/cypress/integration/KohaTable/PatronSearch_spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/cypress/integration/KohaTable/PatronSearch_spec.ts b/t/cypress/integration/KohaTable/PatronSearch_spec.ts index 5be48831941..bffcd29580b 100644 --- a/t/cypress/integration/KohaTable/PatronSearch_spec.ts +++ b/t/cypress/integration/KohaTable/PatronSearch_spec.ts @@ -147,7 +147,7 @@ describe("Filters", () => { cy.window().then(win => { win.categories_map = patrons.reduce((map, p) => { - map[p.category_id] = p.category_id; + map[p.category_id.toLowerCase()] = p.category_id; return map; }, {}); }); -- 2.39.5