diff --git a/web/client/src/sections/fillion/components/file/roadModal.js b/web/client/src/sections/fillion/components/file/roadModal.js index 994b5224..e4a87e8b 100644 --- a/web/client/src/sections/fillion/components/file/roadModal.js +++ b/web/client/src/sections/fillion/components/file/roadModal.js @@ -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);