アイコンを最初と最後だけ表示するように修正

This commit is contained in:
harukin-expo-dev-env
2025-12-28 15:56:27 +00:00
parent f475680665
commit fd3e488c34
+1 -1
View File
@@ -1290,7 +1290,7 @@ const setStrings = () =>{
}
});
if(trainIconUrl.length > 0){
trainIconUrl.forEach((url,index,array) => {
[trainIconUrl[0], trainIconUrl[trainIconUrl.length - 1]].forEach((url,index,array) => {
if(url && url != ""){
setStationIcon(element.querySelector("img"),url,hasProblem,trainIconUrl.length == 1 ? 100 : index);