Skip to content

Commit

Permalink
Added: risk comments
Browse files Browse the repository at this point in the history
  • Loading branch information
john681611 committed Jul 4, 2023
1 parent 7a8df59 commit 40d857c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const DocumentNode: FunctionComponent<DocumentNode> = ({
<div className="document-node__link-type-container" key={type}>
{idx > 0 && <hr/>}
<div>
<b>Which {getDocumentTypeText(type, links[0].document.doctype)}</b>:
<b>Which {getDocumentTypeText(type, links[0].document.doctype)}</b>:{/* Risk here of mixed doctype in here causing odd output */}
</div>
<div>
<div className="accordion ui fluid styled f0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const CommonRequirementEnumeration = () => {
Object.entries(linksByType).map(([type, links]) => (
<div className="cre-page__links" key={type}>
<div className="cre-page__links-eader">
<b>Which {getDocumentTypeText(type, links[0].document.doctype)}</b>:
<b>Which {getDocumentTypeText(type, links[0].document.doctype)}</b>:{/* Risk here of mixed doctype in here causing odd output */}
</div>
{links.sort((a, b) => getDocumentDisplayName(a.document).localeCompare(getDocumentDisplayName(b.document))).map((link, i) => (
<div key={i} className="accordion ui fluid styled cre-page__links-container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const StandardSection = () => {
Object.entries(linksByType).map(([type, links]) => (
<div className="cre-page__links" key={type}>
<div className="cre-page__links-header">
<b>Which {getDocumentTypeText(type, links[0].document.doctype)}</b>:
<b>Which {getDocumentTypeText(type, links[0].document.doctype)}</b>:{/* Risk here of mixed doctype in here causing odd output */}
</div>
{links.sort((a, b) => getDocumentDisplayName(a.document).localeCompare(getDocumentDisplayName(b.document))).map((link, i) => (
<div key={i} className="accordion ui fluid styled cre-page__links-container">
Expand Down

0 comments on commit 40d857c

Please sign in to comment.