fix(ui): fix form update
This commit is contained in:
parent
87d842ba43
commit
4e8cb33727
1 changed files with 2 additions and 2 deletions
|
|
@ -79,10 +79,10 @@ export default class AlertsStore {
|
|||
|
||||
edit = (diff: Partial<Alert>) => {
|
||||
const key = Object.keys(diff)[0]
|
||||
const oldInst = { ...this.instance }
|
||||
const oldInst = this.instance
|
||||
// @ts-ignore
|
||||
oldInst[key] = diff[key]
|
||||
|
||||
this.instance = new Alert(oldInst, !!oldInst.alertId)
|
||||
this.instance = oldInst
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue