diff --git a/src/frontend/src/components/modals/LicenseModal.tsx b/src/frontend/src/components/modals/LicenseModal.tsx index 05c8d4a79c..a790e765b5 100644 --- a/src/frontend/src/components/modals/LicenseModal.tsx +++ b/src/frontend/src/components/modals/LicenseModal.tsx @@ -20,7 +20,7 @@ export function LicenceView(entries: Readonly) { return ( - {entries?.length > 0 && ( + {entries?.length > 0 ? ( {entries?.map((entry: any, index: number) => ( @@ -38,6 +38,10 @@ export function LicenceView(entries: Readonly) { ))} + ) : ( + + No Information provided - this is likely a server issue + )} ); @@ -53,6 +57,8 @@ export function LicenseModal() { .catch(() => {}) }); + const rspdata = !data ? [] : Object.keys(data ?? {}); + return ( @@ -69,16 +75,16 @@ export function LicenseModal() { ) : ( - + - {Object.keys(data ?? {}).map((key) => ( + {rspdata.map((key) => ( {key} Packages ))} - {Object.keys(data ?? {}).map((key) => ( + {rspdata.map((key) => ( {LicenceView(data[key] ?? [])}