Skip to content

Commit

Permalink
fix(navigation): check unique subflow name for current
Browse files Browse the repository at this point in the history
Co-Authored-By: Alex August Schlote <[email protected]>
  • Loading branch information
chohner and aaschlote committed Mar 21, 2024
1 parent 81265c2 commit ded854c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/services/flowNavigation.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ function getSubflowSpecifics(
destination: flowRoot + subflowDestionationStepId,
label: translation[subflowRoot] ?? subflowKey,
state: navState({
isCurrent: currentStepId.startsWith(subflowRoot),
isCurrent:
currentStepId.startsWith(subflowRoot) &&
currentStepId.at(subflowRoot.length) === "/", // subflows might start with the same name, this ensures the following characters
isReachable: subflowState !== "Hidden",
isDone: subflowState == "Done",
isUneditable: flowController.isUneditable(subflowRoot),
Expand Down

0 comments on commit ded854c

Please sign in to comment.