From f4a37f19c98aeb5cb8fe4080001940f03c6ff448 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 20 May 2024 13:52:24 +0530 Subject: [PATCH] fix: empty state primary action for root collections Ensure child collections are created instead of the action resulting in new root collections. --- .../src/components/new-collections/rest/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hoppscotch-common/src/components/new-collections/rest/index.vue b/packages/hoppscotch-common/src/components/new-collections/rest/index.vue index 0b99a0416..b158b89fa 100644 --- a/packages/hoppscotch-common/src/components/new-collections/rest/index.vue +++ b/packages/hoppscotch-common/src/components/new-collections/rest/index.vue @@ -217,7 +217,7 @@ :label="t('add.new')" filled outline - @click="showModalAddRootCollection = true" + @click="addChildCollection(node.data.value.collectionID)" /> @@ -388,7 +388,7 @@ :label="t('add.new')" filled outline - @click="showModalAddRootCollection = true" + @click="addChildCollection(node.data.value.collectionID)" />