From 2691e171b548d657ec0b86aadbe1aab881967653 Mon Sep 17 00:00:00 2001 From: panda Date: Mon, 6 Nov 2023 23:18:54 +0800 Subject: [PATCH] ui: fix record_detail_status score display (#685) --- packages/ui-default/templates/record_detail_status.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-default/templates/record_detail_status.html b/packages/ui-default/templates/record_detail_status.html index 430642cc..11734f96 100644 --- a/packages/ui-default/templates/record_detail_status.html +++ b/packages/ui-default/templates/record_detail_status.html @@ -71,7 +71,7 @@ {{ model.builtin.STATUS_TEXTS[rcdoc['status']] }} - {% if (rdoc.subtask and _key != 'id' and rcdocs.length == 1) or (_key == 'id' and rdoc.subtasks[rcdoc.subtaskId].type == 'sum') %} + {% if (rdoc.subtasks and _key != 'id' and rcdocs.length == 1) or (_key == 'id' and rdoc.subtasks[rcdoc.subtaskId].type == 'sum') %} {{ (rdoc.subtasks[subtaskId]['score'] if _key != 'id' else rcdoc.score)|default(0) }}