We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 249ffd4 commit 5e3a13bCopy full SHA for 5e3a13b
1 file changed
app/components/sheets/RouteDetails.tsx
@@ -69,7 +69,12 @@ const RouteDetails: React.FC<SheetProps> = ({ sheetRef }) => {
69
// Filters patternPaths for only the selected route from all patternPaths
70
function getPatternPathForSelectedRoute(): IPatternPath | undefined {
71
if (!selectedRoute) return undefined;
72
- return selectedRoute.patternPaths[selectedDirectionIndex];
+ return selectedRoute.patternPaths.find(
73
+ (direction) =>
74
+ direction.patternKey ===
75
+ selectedRoute.directionList[selectedDirectionIndex]?.patternList[0]
76
+ ?.key,
77
+ );
78
}
79
80
const handleDismiss = () => {
0 commit comments