diff --git a/hwe/ts/myPage.ts b/hwe/ts/myPage.ts index bc0dc914..055af084 100644 --- a/hwe/ts/myPage.ts +++ b/hwe/ts/myPage.ts @@ -9,7 +9,7 @@ import { unwrap_any } from './util/unwrap_any'; type LogResponse = { result: true; - log: Record; + log: Record; }; $(function ($) { @@ -92,10 +92,11 @@ $(function ($) { } const html: string[] = []; - for (const [key, item] of Object.entries(result.log)) { + for (const key of Object.values(keys)) { if ($(`#log_${logType}_${key}`).length) { return true; } + const item = result.log[key]; html.push(`
${item}
`); } $(`#${logType}Plate`).append(html.join(''));