Browse Source

fix(common): exception while clicking request history entries (#4832)

Nivedin 1 week ago
parent
commit
ce99617aac
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/hoppscotch-common/src/components/history/Personal.vue

+ 2 - 0
packages/hoppscotch-common/src/components/history/Personal.vue

@@ -318,8 +318,10 @@ const clearHistory = () => {
 // NOTE: For GQL, the HistoryGraphqlCard component already implements useEntry
 // NOTE: For GQL, the HistoryGraphqlCard component already implements useEntry
 // (That is not a really good behaviour tho ¯\_(ツ)_/¯)
 // (That is not a really good behaviour tho ¯\_(ツ)_/¯)
 const tabs = useService(RESTTabService)
 const tabs = useService(RESTTabService)
+
 const useHistory = (entry: RESTHistoryEntry) => {
 const useHistory = (entry: RESTHistoryEntry) => {
   tabs.createNewTab({
   tabs.createNewTab({
+    type: "request",
     request: entry.request,
     request: entry.request,
     isDirty: false,
     isDirty: false,
   })
   })