Skip to content

Commit

Permalink
Merge pull request #481 from tutors-sdk/App/Topic-Navigator-Unit-Link…
Browse files Browse the repository at this point in the history
…s-Issue

fix: The solution was to access the route from the parentTopic and al…
  • Loading branch information
edeleastar authored Sep 11, 2023
2 parents b4dc29f + a2dd193 commit 8063feb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</script>

{#each topic.toc as lo}
<a href={lo.route} class="flex py-1">
<a href={lo.type === "unit" ? lo?.parentTopic?.route : lo.type === "side" ? lo?.parentTopic?.route : lo?.route} class="flex py-1">
<Icon type={lo.type} />
<span class="ml-2 mb-1"> {@html lo.title} </span>
{#if lo.video && lo.type != "panelvideo"}
Expand Down

0 comments on commit 8063feb

Please sign in to comment.