Skip to content

Commit

Permalink
Merge pull request #73 from GovTechSG/fix/missing-release-notes
Browse files Browse the repository at this point in the history
Modify element id used to get release notes info
  • Loading branch information
greyguy21 authored Nov 21, 2023
2 parents 9654461 + 5c2087f commit bf8518d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MainWindow/HomePage/WhatsNewModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const WhatsNewModal = ({

// remove unneeded info
const allElements = releaseNotesNode.childNodes;
const toRemoveUpToId = "newfeatures";
const toRemoveUpToId = "whatsnew";
for (const element of allElements) {
if (element.id === toRemoveUpToId) break;
element.remove();
if (element.id === toRemoveUpToId) break;
}

const headings = releaseNotesNode.getElementsByTagName("h4");
Expand Down

0 comments on commit bf8518d

Please sign in to comment.