文字列を参照していた問題を修正

This commit is contained in:
Last2014 2025-07-02 16:42:06 +09:00
parent 73091bb92f
commit dd70fe5494
1 changed files with 3 additions and 4 deletions

View File

@ -274,12 +274,11 @@ async function event(earthquakeInfo: any): Promise<void> {
if (earthquakeInfo.points !== null) {
const areaNames: Array<string> = Array.from(
new Set(
earthquakeInfo.points.map((i: any) => {
return earthquakeInfo.points[i.addr];
}).filter(Boolean)
earthquakeInfo.points
.map((point: any) => point.addr)
.filter(Boolean)
),
);
areas = `対象地域:${areaNames.join("・")}`;
}