Skip to content

Commit b705d6d

Browse files
committed
fix warnings
1 parent c9f8feb commit b705d6d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

app/routes/MdxRoute.res

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ let getGroup = (groups, groupName): SidebarLayout.Sidebar.Category.t => {
7676
let getAllGroups = (groups, groupNames): array<SidebarLayout.Sidebar.Category.t> =>
7777
groupNames->Array.map(item => getGroup(groups, item))
7878

79-
let blogPosts = async () => {
80-
(await allMdx())->filterMdxPages("blog")
81-
}
82-
8379
// These are the pages for the language manual, sorted by their "order" field in the frontmatter
8480
let manualTableOfContents = async () => {
8581
let groups =
@@ -139,8 +135,6 @@ let loader: ReactRouter.Loader.t<loaderData> = async ({request}) => {
139135
let mdx = await loadMdx(request, ~options={remarkPlugins: Mdx.plugins})
140136

141137
if pathname->String.includes("blog") {
142-
let posts = blogPosts()
143-
144138
let res: loaderData = {
145139
__raw: mdx.__raw,
146140
attributes: mdx.attributes,

0 commit comments

Comments
 (0)