Merge branch '292_fix_cancel_js' into 'master'

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

Closes #292

See merge request klub-dev-ens/gestioCOF!516
This commit is contained in:
Tom Hubrecht 2023-01-28 15:20:53 +01:00
commit 5160da7862

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