fix(kfet): fix js error when cancelling already canceled operation

This commit is contained in:
Alice 2023-01-28 15:13:55 +01:00
parent dfa5b4bf69
commit aad3775222

View file

@ -248,7 +248,7 @@ function KHistory(options = {}) {
that.cancel_entry(entry);
}
if (type == "operation") {
for (let opegroup of data["opegroups_to_update"]) {
for (let opegroup of (data["opegroups_to_update"] || [])) {
that.update_opegroup(opegroup)
}
}