Adds fallback when no environments are defined

This commit is contained in:
Thomas Pyle 2023-09-26 19:39:46 -04:00
parent 50e0558d7d
commit 8df6b241bb

View File

@ -35,7 +35,7 @@ const CollectionProperties = ({ collection, onClose }) => {
</tr> </tr>
<tr className=""> <tr className="">
<td className="py-2 px-2 text-right">Environments&nbsp;:</td> <td className="py-2 px-2 text-right">Environments&nbsp;:</td>
<td className="py-2 px-2">{collection.environments.length}</td> <td className="py-2 px-2">{collection.environments?.length || 0}</td>
</tr> </tr>
<tr className=""> <tr className="">
<td className="py-2 px-2 text-right">Requests&nbsp;:</td> <td className="py-2 px-2 text-right">Requests&nbsp;:</td>