diff --git a/packages/hoppscotch-app/components/collections/graphql/index.vue b/packages/hoppscotch-app/components/collections/graphql/index.vue index 0305f010..d490eed1 100644 --- a/packages/hoppscotch-app/components/collections/graphql/index.vue +++ b/packages/hoppscotch-app/components/collections/graphql/index.vue @@ -290,7 +290,7 @@ export default defineComponent({ }, duplicateRequest({ folderPath, request }) { saveGraphqlRequestAs(folderPath, { - ...request, + ...cloneDeep(request), name: `${request.name} - ${this.$t("action.duplicate")}`, }) }, diff --git a/packages/hoppscotch-app/components/collections/index.vue b/packages/hoppscotch-app/components/collections/index.vue index e410afba..e968e292 100644 --- a/packages/hoppscotch-app/components/collections/index.vue +++ b/packages/hoppscotch-app/components/collections/index.vue @@ -688,7 +688,7 @@ export default defineComponent({ }, duplicateRequest({ folderPath, request }) { saveRESTRequestAs(folderPath, { - ...request, + ...cloneDeep(request), name: `${request.name} - ${this.$t("action.duplicate")}`, }) },