Skip to content

Commit

Permalink
Move back getPageTitle call to reactive statement
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Dec 31, 2024
1 parent dff178c commit 2574487
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@
afterNavigate(async () => {
$breadcrumbs = await trimBreadcrumbsToCurrentPath($breadcrumbs, $page.url.pathname);
});
$: {
$pageTitle = getPageTitle();
if ($breadcrumbs.length < 2)
breadcrumbs.push([{ label: $pageTitle, href: $page.url.pathname }]);
$pageTitle = getPageTitle();
});
}
</script>

<ol class="breadcrumb-nonresponsive h-6 overflow-hidden whitespace-nowrap">
Expand Down

0 comments on commit 2574487

Please sign in to comment.