fix(#217): Merge pull request #218 from tpyle/bug/no-environments

Adds fallback when no environments are defined
This commit is contained in:
Anoop M D 2023-09-27 14:35:26 +05:30 committed by GitHub
commit 07ad1f9f60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ const CollectionProperties = ({ collection, onClose }) => {
</tr>
<tr className="">
<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 className="">
<td className="py-2 px-2 text-right">Requests&nbsp;:</td>