文字列を参照していた問題を修正
This commit is contained in:
parent
73091bb92f
commit
dd70fe5494
|
@ -274,12 +274,11 @@ async function event(earthquakeInfo: any): Promise<void> {
|
||||||
if (earthquakeInfo.points !== null) {
|
if (earthquakeInfo.points !== null) {
|
||||||
const areaNames: Array<string> = Array.from(
|
const areaNames: Array<string> = Array.from(
|
||||||
new Set(
|
new Set(
|
||||||
earthquakeInfo.points.map((i: any) => {
|
earthquakeInfo.points
|
||||||
return earthquakeInfo.points[i.addr];
|
.map((point: any) => point.addr)
|
||||||
}).filter(Boolean)
|
.filter(Boolean)
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
areas = `対象地域:${areaNames.join("・")}`;
|
areas = `対象地域:${areaNames.join("・")}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue