Browse Source

fix undefind roads

dev
巴林闲侠 2 years ago
parent
commit
a50e67b818
  1. 2
      web/client/src/sections/fillion/components/file/roadModal.js

2
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);

Loading…
Cancel
Save