From aad37752225b13e794b6ef06b112208cb861c10f Mon Sep 17 00:00:00 2001 From: Alice Andres Date: Sat, 28 Jan 2023 15:13:55 +0100 Subject: [PATCH] fix(kfet): fix js error when cancelling already canceled operation --- kfet/static/kfet/js/history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kfet/static/kfet/js/history.js b/kfet/static/kfet/js/history.js index 4c2a2664..57829a10 100644 --- a/kfet/static/kfet/js/history.js +++ b/kfet/static/kfet/js/history.js @@ -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) } }