mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 01:15:03 +03:00
refactor: use string replace
This commit is contained in:
1 parent
e211968f35
commit
ec0c6890fd
1 file changed
+1
-4
@@ -60,10 +60,7 @@ const RefSectionHandler = (props: RefSectionHandlerProps) => {
|
||||
const pageTitle = getPageTitle()
|
||||
const section = props.sections.find((section) => section.slug === slug)
|
||||
const fullTitle = `${pageTitle}${section ? ` - ${section.title}` : ''}`
|
||||
const path = router.asPath
|
||||
.split('/')
|
||||
.filter((segment) => segment !== 'crawlers')
|
||||
.join('/')
|
||||
const path = router.asPath.replace('/crawlers', '')
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user