Bug 41604: (follow-up) Fix the visibility when visibility_condition is 0 or null, instead of false
Signed-off-by: Jason Robb <jrobb@sekls.org> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
f1160e7a70
commit
d20f7bc7a7
|
|
@ -1032,7 +1032,10 @@ function _dt_visibility(table_settings, table_dt) {
|
|||
if (use_names) {
|
||||
// Deal with visibility_condition (needed when state is not saved)
|
||||
table_settings.columns = table_settings.columns.map(c => {
|
||||
if (c.visibility_condition === false) {
|
||||
if (
|
||||
c.visibility_condition !== undefined &&
|
||||
!c.visibility_condition
|
||||
) {
|
||||
return {
|
||||
...c,
|
||||
is_hidden: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue