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