fix: remove scrollbar on x-axis in toc (#3008)
* fix: remove overflow x in toc * fix: use useMemo * fix: parsing /settings/integrations/slack * fix: no transparency in firefox * fix: remove debounced fn
This commit is contained in:
@@ -11,5 +11,7 @@ export default function parseDocumentSlug(url: string) {
|
||||
}
|
||||
}
|
||||
|
||||
return parsed.replace(/^\/doc\//, "");
|
||||
return parsed.lastIndexOf("/doc/") === 0
|
||||
? parsed.replace(/^\/doc\//, "")
|
||||
: null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user