fix(ui): fix form update
This commit is contained in:
parent
419aaf2a72
commit
b2f4795745
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