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>
This commit is contained in:
Matt Blenkinsop 2025-11-19 10:52:46 +00:00 committed by Lucas Gass
parent 4c316e25cd
commit 76d7a0bc72
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
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 (