From c3f18671eca1a528e22acd50cc5db6fcb62e91ba Mon Sep 17 00:00:00 2001 From: Akash K <57758277+amk-dev@users.noreply.github.com> Date: Fri, 9 Dec 2022 20:39:36 +0530 Subject: [PATCH] fix: cannot write to body when a request is loaded from history (#2873) * fix: cannot write body when a request is loaded from history * fix: import `toRaw()` from vue Co-authored-by: Liyas Thomas --- packages/hoppscotch-common/src/components/history/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hoppscotch-common/src/components/history/index.vue b/packages/hoppscotch-common/src/components/history/index.vue index 1e302f08..462150c3 100644 --- a/packages/hoppscotch-common/src/components/history/index.vue +++ b/packages/hoppscotch-common/src/components/history/index.vue @@ -99,7 +99,7 @@ :show-more="showMore" @toggle-star="toggleStar(entry.entry)" @delete-entry="deleteHistory(entry.entry)" - @use-entry="useHistory(entry.entry)" + @use-entry="useHistory(toRaw(entry.entry))" /> @@ -164,7 +164,7 @@ import IconHelpCircle from "~icons/lucide/help-circle" import IconTrash2 from "~icons/lucide/trash-2" import IconTrash from "~icons/lucide/trash" import IconFilter from "~icons/lucide/filter" -import { computed, ref, Ref } from "vue" +import { computed, ref, Ref, toRaw } from "vue" import { useColorMode } from "@composables/theming" import { HoppGQLRequest,