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:
parent
4c316e25cd
commit
76d7a0bc72
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in New Issue