文字列を参照していた問題を修正
This commit is contained in:
parent
73091bb92f
commit
dd70fe5494
|
@ -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("・")}`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue