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 a8bc4a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@
$breadcrumbs = await trimBreadcrumbsToCurrentPath($breadcrumbs, $page.url.pathname);
if ($breadcrumbs.length < 2)
breadcrumbs.push([{ label: $pageTitle, href: $page.url.pathname }]);
$pageTitle = getPageTitle();
});
$: $pageTitle = getPageTitle();
</script>

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

0 comments on commit a8bc4a6

Please sign in to comment.