Merge pull request #4473 from backstage/default-dismiss-form-bugfix

Default dismiss form bugfix
This commit is contained in:
Ryan Vazquez
2021-02-10 12:05:01 -05:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
@@ -0,0 +1,5 @@
---
'@backstage/plugin-cost-insights': patch
---
fixes a bug in default dismiss form where other text input persists between reason selections
@@ -66,6 +66,9 @@ export const AlertDismissForm = forwardRef<
};
const onReasonChange = (_: ChangeEvent<HTMLInputElement>, value: string) => {
if (other) {
setOther(null);
}
setReason(value as AlertDismissReason);
};