@@ -494,7 +494,7 @@ document.addEventListener('DOMContentLoaded', () => {
494
494
'Valid-Until'
495
495
] ;
496
496
497
- // First display the important fields in a specific order
497
+ // Only display the important fields if they exist
498
498
importantFields . forEach ( field => {
499
499
if ( releaseInfo [ field ] ) {
500
500
const div = document . createElement ( 'div' ) ;
@@ -507,31 +507,7 @@ document.addEventListener('DOMContentLoaded', () => {
507
507
infoGridDiv . appendChild ( div ) ;
508
508
}
509
509
} ) ;
510
-
511
- // Then display any other fields not already shown
512
- Object . keys ( releaseInfo ) . forEach ( field => {
513
- // Exclude Architectures, Components, and Description fields
514
- if ( ! importantFields . includes ( field ) &&
515
- field !== 'Architectures' &&
516
- field !== 'Components' &&
517
- field !== 'Description' ) {
518
- const div = document . createElement ( 'div' ) ;
519
- const strong = document . createElement ( 'strong' ) ;
520
- strong . textContent = field + ': ' ;
521
- const span = document . createElement ( 'span' ) ;
522
-
523
- // Handle array-like values
524
- if ( Array . isArray ( releaseInfo [ field ] ) ) {
525
- span . textContent = releaseInfo [ field ] . join ( ', ' ) ;
526
- } else {
527
- span . textContent = releaseInfo [ field ] ;
528
- }
529
-
530
- div . appendChild ( strong ) ;
531
- div . appendChild ( span ) ;
532
- infoGridDiv . appendChild ( div ) ;
533
- }
534
- } ) ;
510
+
535
511
}
536
512
537
513
function showReleaseInfo ( ) {
0 commit comments