Skip to content

Commit

Permalink
Merge pull request #59 from TNO/bugfix-delete-annotation
Browse files Browse the repository at this point in the history
Fix bug on annotation delete
  • Loading branch information
TuenDeBuis authored Oct 3, 2023
2 parents 65b4e86 + c99bc5b commit 532397c
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 532397c

Please sign in to comment.