fix(ui): fix form update

This commit is contained in:
nick-delirium 2023-02-22 17:18:17 +01:00 committed by Taha Yassine Kraiem
parent 87d842ba43
commit 4e8cb33727

View file

@ -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
}
}