fix: add tab id while opening tab (#4587)
This commit is contained in:
parent
5ad998f54a
commit
a332fd1f69
2 changed files with 3 additions and 17 deletions
|
|
@ -182,11 +182,7 @@ import { platform } from "~/platform"
|
|||
import { useService } from "dioc/vue"
|
||||
import { GQLTabService } from "~/services/tab/graphql"
|
||||
import { computed } from "vue"
|
||||
import {
|
||||
HoppCollection,
|
||||
HoppGQLRequest,
|
||||
makeGQLRequest,
|
||||
} from "@hoppscotch/data"
|
||||
import { HoppCollection, HoppGQLRequest } from "@hoppscotch/data"
|
||||
import { Picked } from "~/helpers/types/HoppPicked"
|
||||
import { HoppInheritedProperty } from "~/helpers/types/HoppInheritedProperties"
|
||||
import { updateInheritedPropertiesForAffectedRequests } from "~/helpers/collection/collection"
|
||||
|
|
@ -539,23 +535,13 @@ const selectRequest = ({
|
|||
tabs.setActiveTab(possibleTab.value.id)
|
||||
return
|
||||
}
|
||||
|
||||
tabs.createNewTab({
|
||||
saveContext: {
|
||||
originLocation: "user-collection",
|
||||
folderPath: folderPath,
|
||||
requestIndex: requestIndex,
|
||||
},
|
||||
request: cloneDeep(
|
||||
makeGQLRequest({
|
||||
name: request.name,
|
||||
url: request.url,
|
||||
query: request.query,
|
||||
headers: request.headers,
|
||||
variables: request.variables,
|
||||
auth: request.auth,
|
||||
})
|
||||
),
|
||||
request: cloneDeep(request),
|
||||
isDirty: false,
|
||||
inheritedProperties: {
|
||||
auth,
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ import { useVModel } from "@vueuse/core"
|
|||
import { useService } from "dioc/vue"
|
||||
import { pipe } from "fp-ts/lib/function"
|
||||
import * as TE from "fp-ts/TaskEither"
|
||||
import { computed, nextTick, onMounted, ref, watch } from "vue"
|
||||
import { computed, nextTick, onMounted, ref } from "vue"
|
||||
import { useReadonlyStream } from "~/composables/stream"
|
||||
import { useColorMode } from "~/composables/theming"
|
||||
import { useToast } from "~/composables/toast"
|
||||
|
|
|
|||
Loading…
Reference in a new issue