Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: added '-Copy' to duplicated request name
0xc0Der2ef99026e513
diff --git a/packages/hoppscotch-app/components/collections/graphql/index.vue b/packages/hoppscotch-app/components/collections/graphql/index.vueindex b6dc524f6..a6b5c1306 100644--- a/packages/hoppscotch-app/components/collections/graphql/index.vue+++ b/packages/hoppscotch-app/components/collections/graphql/index.vue@@ -289,7 +289,10 @@ export default defineComponent({this.$data.editingRequestIndex = undefined},duplicateRequest({ folderPath, request }) {- saveGraphqlRequestAs(folderPath, request)+ saveGraphqlRequestAs(folderPath, {+ ...request,+ name: request.name + "-Copy",+ })},},})diff --git a/packages/hoppscotch-app/components/collections/index.vue b/packages/hoppscotch-app/components/collections/index.vueindex 4e0de3396..47e5cbf5c 100644--- a/packages/hoppscotch-app/components/collections/index.vue+++ b/packages/hoppscotch-app/components/collections/index.vue@@ -687,7 +687,10 @@ export default defineComponent({}},duplicateRequest({ folderPath, request }) {- saveRESTRequestAs(folderPath, request)+ saveRESTRequestAs(folderPath, {+ ...request,+ name: request.name + "-Copy",+ })},},})