diff --git a/examples/docs/src/components/LeftSidebar/LeftSidebar.astro b/examples/docs/src/components/LeftSidebar/LeftSidebar.astro index c9ebe4258..33af79463 100644 --- a/examples/docs/src/components/LeftSidebar/LeftSidebar.astro +++ b/examples/docs/src/components/LeftSidebar/LeftSidebar.astro @@ -7,7 +7,9 @@ type Props = { }; const { currentPage } = Astro.props as Props; -const currentPageMatch = currentPage.endsWith('/') ? currentPage.slice(1, -1) : currentPage.slice(1); +const currentPageMatch = currentPage.endsWith('/') + ? currentPage.slice(1, -1) + : currentPage.slice(1); const langCode = getLanguageFromURL(currentPage); const sidebar = SIDEBAR[langCode]; ---