From ce99617aac8466399fd2bfbd34a503d3421da5c2 Mon Sep 17 00:00:00 2001 From: Nivedin <53208152+nivedin@users.noreply.github.com> Date: Wed, 5 Mar 2025 19:14:55 +0530 Subject: [PATCH] fix(common): exception while clicking request history entries (#4832) --- packages/hoppscotch-common/src/components/history/Personal.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/hoppscotch-common/src/components/history/Personal.vue b/packages/hoppscotch-common/src/components/history/Personal.vue index 551e9689..e235a5c6 100644 --- a/packages/hoppscotch-common/src/components/history/Personal.vue +++ b/packages/hoppscotch-common/src/components/history/Personal.vue @@ -318,8 +318,10 @@ const clearHistory = () => { // NOTE: For GQL, the HistoryGraphqlCard component already implements useEntry // (That is not a really good behaviour tho ¯\_(ツ)_/¯) const tabs = useService(RESTTabService) + const useHistory = (entry: RESTHistoryEntry) => { tabs.createNewTab({ + type: "request", request: entry.request, isDirty: false, })