From d6f94e0b536fb7a378689253aa67f97365c4bd43 Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 18 May 2021 18:08:35 +0200 Subject: [PATCH] Improvement: Fix lint issues --- src/templates/MarkdownList.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/MarkdownList.jsx b/src/templates/MarkdownList.jsx index 61a9733e..69a769ec 100644 --- a/src/templates/MarkdownList.jsx +++ b/src/templates/MarkdownList.jsx @@ -53,8 +53,8 @@ export default function MarkdownList({ pageContext }) { setSelectedNodeId(id) for (let i = 0; i < pageContext.markdownList.length; i++) { - var node = pageContext.markdownList[i]['node'] - if (node.id == id) { + var node = pageContext.markdownList[i].node + if (node.id === id) { setElem(node) break }