From a762bb7d300f1a0fc0d64fb33022a53d17d1dbab Mon Sep 17 00:00:00 2001 From: riya-2206 Date: Thu, 20 Jun 2024 18:17:26 +0530 Subject: [PATCH 1/2] fixed repeated api call issue --- docusaurus.config.js | 4 +- src/components/IssueDescription.js | 4 +- src/components/OrgDescription.js | 2 +- src/components/Sidebar.js | 9 +- src/pages/docs/2024/index.js | 88 ++++++++++++++++++- src/pages/docs/2024/org/index.js | 135 ----------------------------- 6 files changed, 95 insertions(+), 147 deletions(-) delete mode 100644 src/pages/docs/2024/org/index.js diff --git a/docusaurus.config.js b/docusaurus.config.js index 3aaa5fb87..d6728031b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -229,11 +229,11 @@ module.exports = { items: [ { label: "VedantKhairnar", - to: "/docs/2024/org?id=VedantKhairnar", + to: "/docs/2024?id=VedantKhairnar", }, { label: "AbhimanyuSamagra", - to: "/docs/2024/org?id=AbhimanyuSamagra", + to: "/docs/2024?id=AbhimanyuSamagra", }, ] } diff --git a/src/components/IssueDescription.js b/src/components/IssueDescription.js index c52a77c7c..e502fbd13 100644 --- a/src/components/IssueDescription.js +++ b/src/components/IssueDescription.js @@ -58,7 +58,7 @@ function IssueDescription({ currentOrg, currentIssue }) {
  • {currentOrg} @@ -330,7 +330,7 @@ function IssueDescription({ currentOrg, currentIssue }) { {d.content && isLearningsDropdown == i && ( - {d.content} + {d.content.match(/