mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
corrected incorrect if condition frame
This commit is contained in:
@@ -51,7 +51,7 @@ class Page extends React.Component<Props> {
|
||||
let pageActionsExists = false;
|
||||
React.Children.forEach(children, child => {
|
||||
if (child && !error) {
|
||||
if (child.type.name === PageActions.name)
|
||||
if (child.type.name === PageActions.name) {
|
||||
pageActions = (
|
||||
<div
|
||||
className={classNames(
|
||||
@@ -62,7 +62,8 @@ class Page extends React.Component<Props> {
|
||||
{child}
|
||||
</div>
|
||||
);
|
||||
pageActionsExists = true;
|
||||
pageActionsExists = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
let underline = pageActionsExists ? (
|
||||
|
||||
Reference in New Issue
Block a user