Check documents array defined

This commit is contained in:
Alicia Sykes 2024-05-31 11:18:14 +01:00
parent c29fc830a2
commit a201ba42db

View file

@ -61,7 +61,7 @@ const removeDuplicates = () => {
{priv.documents && priv.documents.length > 0 && (
<h4>Documents</h4>
<ul>
{priv.documents.map((document) => (
{(priv.documents || []).map((document) => (
<li class="list-item">
<a href={document.url} target="_blank">{document.name}</a>
<div class="date-block">