This fixes a bug discovered by @pjl1000: the landing page will fail to render if the NERDm record does not include a components property. (Note that this is not a required property.) The fix requires the addition of a guard into the useMetadata() function in LandingPageComponent that ensures the property's existence before attempting to calculate the total size of all files combined.
This fixes a bug discovered by @pjl1000: the landing page will fail to render if the NERDm record does not include a components property. (Note that this is not a required property.) The fix requires the addition of a guard into the
useMetadata()
function inLandingPageComponent
that ensures the property's existence before attempting to calculate the total size of all files combined.