Skip to content

Commit

Permalink
If cancel return deployment date or guideline to previous
Browse files Browse the repository at this point in the history
  • Loading branch information
drjoho committed Aug 28, 2023
1 parent bf91864 commit 93355a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions accessibility-checker-extension/src/ts/options/OptionsApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ export class OptionsApp extends React.Component<{}, OptionsAppState> {
open={this.state.modalDeploymentWithScans}
onRequestClose={(() => {
this.setState({ modalDeploymentWithScans: false });
this.setState({ selected_archive: this.state.lastSettings?.selected_archive! });
}).bind(this)}
onRequestSubmit={(() => {
this.clearStoredScans();
Expand Down Expand Up @@ -517,6 +518,7 @@ export class OptionsApp extends React.Component<{}, OptionsAppState> {
open={this.state.modalGuidelinesWithScans}
onRequestClose={(() => {
this.setState({ modalGuidelinesWithScans: false });
this.setState({ selected_ruleset: this.getGuideline(this.state.lastSettings?.selected_archive!, this.state.lastSettings?.selected_ruleset.id!) });
}).bind(this)}
onRequestSubmit={(() => {
this.clearStoredScans();
Expand Down

0 comments on commit 93355a3

Please sign in to comment.