@ -13,7 +13,7 @@ const RoadModal = props => {
clearTimeout(timer)
else {
timer = setTimeout(() => {
if (roads.some(item => item.roadName == roadName)) {
if (roads && roads.some(item => item.roadName == roadName)) {
setIsRepeated(true)
} else {
setIsRepeated(false);