ui: fix testcase id

This commit is contained in:
undefined committed 2022-05-31 14:46:08 +08:00
1 parent cbd5db1ecf
commit a9390d6546
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.37.17",
"version": "4.37.18",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
@@ -39,7 +39,7 @@
{%- for rcdoc in rdoc.testCases|sort(false,false,'id') -%}
<tr>
<td class="col--case record-status--border {{ model.builtin.STATUS_CODES[rcdoc['status']] }}">
#{{ rcdoc.id or loop.index }}
#{{ rcdoc.id|default(loop.index) }}
</td>
<td class="col--status">
<span class="icon record-status--icon {{ model.builtin.STATUS_CODES[rcdoc['status']] }}"></span>