From 8df6b241bb06d38563a2504a374db5b4cfb1c7ad Mon Sep 17 00:00:00 2001 From: Thomas Pyle Date: Tue, 26 Sep 2023 19:39:46 -0400 Subject: [PATCH] Adds fallback when no environments are defined --- .../Collections/Collection/CollectionProperties/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionProperties/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionProperties/index.js index a5718944..88171ed5 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionProperties/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionProperties/index.js @@ -35,7 +35,7 @@ const CollectionProperties = ({ collection, onClose }) => { Environments : - {collection.environments.length} + {collection.environments?.length || 0} Requests :