Просмотр исходного кода

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

Nivedin 1 неделя назад
Родитель
Сommit
ce99617aac
1 измененных файлов с 2 добавлено и 0 удалено
  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
 // (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,
   })