Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: don't display 'Collection is empty' label if collection has any requests

vlad0337187ae8dccf2924e
diff --git a/components/collections/collection.vue b/components/collections/collection.vue
index 4c66556e8..21fbafef6 100644
--- a/components/collections/collection.vue
+++ b/components/collections/collection.vue
@@ -41,7 +41,7 @@
v-on:edit-folder="editFolder"
/>
</li>
- <li v-if="collection.folders.length === 0">
+ <li v-if="(collection.folders.length === 0) && (collection.requests.length === 0)">
<label>Collection is empty</label>
</li>
</ul>