refactor: updated types
This commit is contained in:
@@ -178,6 +178,7 @@
|
||||
|
||||
<script>
|
||||
import { defineComponent } from "@nuxtjs/composition-api"
|
||||
import { translateToNewRequest } from "@hoppscotch/data"
|
||||
import { currentUser$ } from "~/helpers/fb/auth"
|
||||
import * as teamUtils from "~/helpers/teams/utils"
|
||||
import { useReadonlyStream } from "~/helpers/utils/composables"
|
||||
@@ -544,7 +545,7 @@ export default defineComponent({
|
||||
pwRequest.rawParams = request.body.raw
|
||||
}
|
||||
}
|
||||
return pwRequest
|
||||
return translateToNewRequest(pwRequest)
|
||||
},
|
||||
hasFolder(item) {
|
||||
return Object.prototype.hasOwnProperty.call(item, "item")
|
||||
|
||||
@@ -14,7 +14,9 @@ export const defaultGQLSession: GQLSession = {
|
||||
name: "Untitled request",
|
||||
url: "https://echo.hoppscotch.io/graphql",
|
||||
headers: [],
|
||||
variables: `{ "id": "1" }`,
|
||||
variables: `{
|
||||
"id": "1"
|
||||
}`,
|
||||
query: `query Request {
|
||||
method
|
||||
url
|
||||
|
||||
Reference in New Issue
Block a user