Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Pozzi committed Jun 30, 2021
1 parent e1dc25e commit cf64d21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const StatusBarLayout: React.FC<Props> = ({ onItemClick, onGroupClick }) => {
if (!assessmentSummary.maxField) return null;

return (
<TableRow>
<TableRow key={'status_' + item.fullyQualifiedIdentifier}>
<TableCell style={{ textAlign: 'center' }}>
<Button
key={item.fullyQualifiedIdentifier}
Expand Down Expand Up @@ -82,7 +82,7 @@ const StatusBarLayout: React.FC<Props> = ({ onItemClick, onGroupClick }) => {
}

return (
<TableRow>
<TableRow key={'status_' + group.fullyQualifiedIdentifier}>
<TableCell style={{ textAlign: 'center' }}>
<Button
id={group.fullyQualifiedIdentifier}
Expand Down Expand Up @@ -119,9 +119,11 @@ const StatusBarLayout: React.FC<Props> = ({ onItemClick, onGroupClick }) => {
}
/>
<Table>
<TableBody>{context.landscape ? getGroups(context.landscape.groups) : null}</TableBody>
<TableBody>
{context.landscape ? getGroups(context.landscape.groups) : null}
{context.landscape?.groups.map((group) => getItems(group))}
</TableBody>
</Table>
{context.landscape?.groups.map((group) => getItems(group))}
</Card>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/main/app/src/Components/Notification/Changes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const Changes: React.FC<Props> = ({ notification }) => {
setChanges(rows);
});
}
}, [notification, componentClasses.card, locateFunctionContext]);
}, [notification, componentClasses.card, locateFunctionContext, landscapeContext]);

if (!visible) return null;

Expand Down

0 comments on commit cf64d21

Please sign in to comment.