Bug 41214: Apply the same logic to table columns

Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 76d7a0bc72)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
Matt Blenkinsop 2025-11-19 10:52:46 +00:00 committed by Jacob O'Mara
parent 39036410b5
commit 232a736685
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -116,9 +116,9 @@ export default {
let columnActions = thisResource.tableOptions.actions;
const columns = resourceAttrs.reduce((acc, attr, i) => {
const shouldFieldBeHidden = attr.hideIn && typeof attr.hideIn === "function" ? attr.hideIn() : attr.hideIn
if (
attr.hasOwnProperty("hideIn") &&
attr.hideIn.includes("List")
shouldFieldBeHidden && shouldFieldBeHidden.includes("List")
)
return acc;
if (