This repository was archived by the owner on Apr 21, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export default function ScannerExamples(props) {
3838 const node = data . examples . nodes [ i ] ;
3939 if ( edge . node . relativeDirectory . includes ( scanner ) ) {
4040 const target = data . examples . nodes [ i ] . fields . scanTarget
41- if ( ! targets . includes ( target ) )
41+ if ( ! targets . includes ( target ) )
4242 targets . push ( target ) ;
4343 examples . push ( node ) ;
4444 }
@@ -54,12 +54,14 @@ export default function ScannerExamples(props) {
5454 { targets . map ( target => ( < TabPanel key = { target } >
5555 < Tabs >
5656 < TabList >
57- { examples . filter ( example => example . fields . scanTarget === target ) . map ( ( example , index ) => (
57+ { /* We are reversing to ensure that the scan.yaml is shown before the findings.yaml */ }
58+ { examples . filter ( example => example . fields . scanTarget === target ) . reverse ( ) . map ( ( example , index ) => (
5859 < Tab key = { index } > { example . fields . fileName } </ Tab >
5960 ) ) }
6061 </ TabList >
6162
62- { examples . filter ( example => example . fields . scanTarget === target ) . map ( ( example , index ) => (
63+ { /* We are reversing to ensure that the right text ist displayed for the right file */ }
64+ { examples . filter ( example => example . fields . scanTarget === target ) . reverse ( ) . map ( ( example , index ) => (
6365 < TabPanel key = { index } >
6466 < pre > < code > { example . fields . content } </ code > </ pre >
6567 </ TabPanel >
You can’t perform that action at this time.
0 commit comments