Skip to content

Commit eb7eb48

Browse files
committed
MAGETWO-96906: [MAGETWO-94346] PR stabilization
- Optimize component visibility check;
1 parent d8bb0fd commit eb7eb48

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Ui/Component/Layout

1 file changed

+1
-2
lines changed

app/code/Magento/Ui/Component/Layout/Tabs.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ protected function addChildren(array &$topNode, UiComponentInterface $component,
8888
$this->addWrappedBlock($childComponent, $childrenAreas);
8989
continue;
9090
}
91-
if ($childComponent instanceof ComponentVisibilityInterface
92-
&& false === $childComponent->isComponentVisible()) {
91+
if ($childComponent instanceof ComponentVisibilityInterface && !$childComponent->isComponentVisible()) {
9392
continue;
9493
}
9594

0 commit comments

Comments
 (0)