Skip to content

Commit

Permalink
Fix bug on annotation delete
Browse files Browse the repository at this point in the history
  • Loading branch information
ckitsanelis committed Oct 3, 2023
1 parent 65b4e86 commit c99bc5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/viewer/rules/Dialogs/FlagsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class FlagsDialog extends React.Component<Props, State> {
const rule = this.state.rules[ruleIndex].reset();
this.updateRule(rule, ruleIndex);
}
this.setState({ showEdit: false }, () => {
this.setState({ selectedRule: -1, showEdit: false }, () => {
if (isClose === true) this.props.onClose(this.state.rules);
else this.props.onReturn(this.state.rules);
});
Expand Down
2 changes: 1 addition & 1 deletion src/viewer/rules/Dialogs/StatesDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class StatesDialog extends React.Component<Props, State> {
const rule = this.state.rules[ruleIndex].reset();
this.updateRule(rule, ruleIndex);
}
this.setState({ showEdit: false }, () => {
this.setState({ selectedRule: -1, showEdit: false }, () => {
if (isClose === true) this.props.onClose(this.state.rules);
else this.props.onReturn(this.state.rules);
});
Expand Down

0 comments on commit c99bc5b

Please sign in to comment.