change(ui): fix alert reset
This commit is contained in:
parent
06cada3404
commit
cba5936044
1 changed files with 3 additions and 1 deletions
|
|
@ -96,7 +96,9 @@ const NewAlert = (props: IProps) => {
|
|||
const alertId = location.pathname.split('/').pop();
|
||||
const currentAlert = list
|
||||
.find((alert: Alert) => alert.alertId === String(alertId));
|
||||
init(currentAlert || {});
|
||||
if (currentAlert) {
|
||||
init(currentAlert)
|
||||
}
|
||||
}
|
||||
}, [list]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue