Skip to content

Commit

Permalink
fix(autofix): Fix write setup modal closing the drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
jennmueng committed Nov 27, 2024
1 parent 73a925e commit 48b4526
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function AutofixSetupWriteAccessModal({
const {canCreatePullRequests} = useAutofixSetup({groupId, checkWriteAccess: true});

return (
<Fragment>
<div id="autofix-write-access-modal">
<Header closeButton>
<h3>{t('Allow Autofix to Make Pull Requests')}</h3>
</Header>
Expand All @@ -117,7 +117,7 @@ export function AutofixSetupWriteAccessModal({
</ButtonBar>
</Footer>
)}
</Fragment>
</div>
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export default function SolutionsSection({
if (
viewAllButton?.contains(element) ||
document.getElementById('sentry-feedback')?.contains(element) ||
document.getElementById('autofix-rethink-input')?.contains(element)
document.getElementById('autofix-rethink-input')?.contains(element) ||
document.getElementById('autofix-write-access-modal')?.contains(element)
) {
return false;
}
Expand Down

0 comments on commit 48b4526

Please sign in to comment.