Skip to content

Commit

Permalink
Improve isVisibleForItem function
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Sep 30, 2024
1 parent 7a1c553 commit 977ce47
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ export default class DatatableActionDefinitionFactory {
return true;
} else if (capabilities?.operations?.supportsQuery) {
return true;
} else if (parent?.visibilityMode === "exclusive") {
return ref.sublayers && tocItem.listMode === "hide-children";
}
else {
} else if (ref.sublayers.length === 1 && tocItem.listMode === "hide-children") {
return true;
} else {
return false;
}
} else {
Expand Down

0 comments on commit 977ce47

Please sign in to comment.