Fix some issues
This commit is contained in:
@ -850,7 +850,7 @@
|
||||
async function loadEventCodes() {
|
||||
console.log('loadEventCodes called');
|
||||
try {
|
||||
const apiUrl = `${API_BASE_URL}/events/`;
|
||||
const apiUrl = `${API_BASE_URL}/events-supervisor/`;
|
||||
console.log('Fetching events from URL:', apiUrl);
|
||||
|
||||
const response = await fetch(apiUrl, {
|
||||
@ -876,8 +876,8 @@
|
||||
|
||||
data.forEach(event => {
|
||||
const option = document.createElement('option');
|
||||
option.value = event.code;
|
||||
option.textContent = event.name;
|
||||
option.value = event.event_name; // event_nameを使用
|
||||
option.textContent = event.event_name; // event_nameを使用
|
||||
select.appendChild(option);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user