From fbb4ce9fafab3183e27204eccad73c542cb684c8 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Thu, 17 Nov 2022 22:51:24 +0100 Subject: custom is entry 0 --- webAO/client/fetchLists.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'webAO/client/fetchLists.ts') diff --git a/webAO/client/fetchLists.ts b/webAO/client/fetchLists.ts index e9772cb..7f0104e 100644 --- a/webAO/client/fetchLists.ts +++ b/webAO/client/fetchLists.ts @@ -26,7 +26,7 @@ export const fetchCharacterList = async () => { // the try catch will fail before here when there is no file const char_select = ( - document.getElementById("client_ininame") + document.getElementById("client_iniselect") ); char_select.innerHTML = ""; @@ -50,10 +50,12 @@ export const fetchEvidenceList = async () => { ); evi_select.innerHTML = ""; + evi_select.add(new Option("Custom", "0")); + evi_array.forEach((evi: string) => { evi_select.add(new Option(evi)); }); - evi_select.add(new Option("Custom", "0")); + } catch (err) { console.warn("there was no evidence.json file"); } -- cgit