Skip to content

Commit

Permalink
[frontend] investigation graphbar constante to disable roll back butt…
Browse files Browse the repository at this point in the history
…on renamed (#3167)
  • Loading branch information
ValentinBouzinFiligran committed Apr 5, 2024
1 parent 98c21bc commit 4040e7f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ class InvestigationGraphBar extends Component {
}
const stixCoreObjectOrRelationshipId = (selectedNodes[0]?.id ?? null) || (selectedLinks[0]?.id ?? null);

const isRollBackToLastPreExpansionStateEnabled = !getPreExpansionStateList();
const isRollBackToLastPreExpansionStateDisabled = !getPreExpansionStateList();

return (
<UserContext.Consumer>
Expand Down Expand Up @@ -875,7 +875,7 @@ class InvestigationGraphBar extends Component {
<span>
<IconButton
color="primary"
disabled={isRollBackToLastPreExpansionStateEnabled}
disabled={isRollBackToLastPreExpansionStateDisabled }
onClick={handleOpenRollBackToPreExpansionStateDialog}
size="large"
>
Expand Down

0 comments on commit 4040e7f

Please sign in to comment.