Skip to content

Commit 6b5d3fc

Browse files
authored
Merge pull request #165 from don-aot/CONDITIONS-task#155
CR-155:Breadcrumbs should navigate back to Consolidated Conditions if user clicks into a condition from that screen
2 parents b829691 + 66ecf6a commit 6b5d3fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

condition-web/src/components/Shared/layout/SideNav/BreadcrumbNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const BreadcrumbNav: React.FC = () => {
3030
}, [matches, isFromConsolidated]);
3131

3232
useEffect(() => {
33-
if (!isFromConsolidated) {
33+
if (!isFromConsolidated && routeMatches.length > 0) {
3434
setBreadcrumbs(routeMatches);
3535
}
3636
}, [routeMatches, setBreadcrumbs, isFromConsolidated]);

0 commit comments

Comments
 (0)