ichieh commited on
Commit
e91bb41
·
1 Parent(s): 307a281

Fix participant table rendering in admin panel

Browse files
Files changed (1) hide show
  1. templates/admin.html +6 -1
templates/admin.html CHANGED
@@ -208,7 +208,12 @@
208
 
209
  // 渲染參與者列表
210
  function renderParticipants() {
211
- const tbody = document.querySelector('#participantsTable tbody');
 
 
 
 
 
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 => {