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:
parent
39036410b5
commit
232a736685
|
|
@ -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