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 <liyascthomas@gmail.com>
This commit is contained in:
Akash K
2022-12-09 20:39:36 +05:30
committed by GitHub
parent 0d33758ba4
commit c3f18671ec

View File

@@ -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))"
/>
</details>
</div>
@@ -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,