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

This commit is contained in:
Nivedin 2025-03-05 19:14:55 +05:30 committed by GitHub
parent 42f90d3f05
commit ce99617aac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
})