Spaces:
Sleeping
Sleeping
ichieh commited on
Commit ·
e91bb41
1
Parent(s): 307a281
Fix participant table rendering in admin panel
Browse files- templates/admin.html +6 -1
templates/admin.html
CHANGED
|
@@ -208,7 +208,12 @@
|
|
| 208 |
|
| 209 |
// 渲染參與者列表
|
| 210 |
function renderParticipants() {
|
| 211 |
-
const tbody = document.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
tbody.innerHTML = '';
|
| 213 |
|
| 214 |
participants.forEach(participant => {
|
|
|
|
| 208 |
|
| 209 |
// 渲染參與者列表
|
| 210 |
function renderParticipants() {
|
| 211 |
+
const tbody = document.getElementById('participantsTable');
|
| 212 |
+
if (!tbody) {
|
| 213 |
+
console.error('找不到參與者列表元素');
|
| 214 |
+
return;
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
tbody.innerHTML = '';
|
| 218 |
|
| 219 |
participants.forEach(participant => {
|