diff --git a/web/client/src/sections/fillion/components/fileTable.js b/web/client/src/sections/fillion/components/fileTable.js index 77fc8cce..a58840f3 100644 --- a/web/client/src/sections/fillion/components/fileTable.js +++ b/web/client/src/sections/fillion/components/fileTable.js @@ -218,7 +218,7 @@ const RoadNameList = (props) => { ]; useEffect(() => { - if (roads && roads instanceof Array) { + if (roads && roads instanceof Array && roads.length) { setSelectRoad(roads[0].rId) onChange(roads[0]); } diff --git a/web/client/src/sections/fillion/nav-item.js b/web/client/src/sections/fillion/nav-item.js index e7e0cf62..bc72281e 100644 --- a/web/client/src/sections/fillion/nav-item.js +++ b/web/client/src/sections/fillion/nav-item.js @@ -32,6 +32,9 @@ export function getNavItem(user, dispatch) {