From a8bc4a649f4fb3ee3b91b6d4dea70724a32889bc Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Tue, 31 Dec 2024 02:05:54 +0100 Subject: [PATCH] Move back getPageTitle call to reactive statement --- frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte b/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte index a3c0ddbe8..17e4e00b8 100644 --- a/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte +++ b/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte @@ -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();