fix: graphql save request emit payload (#2913)

This commit is contained in:
Nivedin
2023-02-01 15:20:13 +05:30
committed by GitHub
parent cd6e40f01c
commit f676f94278
2 changed files with 9 additions and 12 deletions

View File

@@ -169,11 +169,9 @@ const isSelected = computed(
const pick = () => {
emit("select", {
picked: {
pickedType: "gql-my-request",
folderPath: props.folderPath,
requestIndex: props.requestIndex,
},
pickedType: "gql-my-request",
folderPath: props.folderPath,
requestIndex: props.requestIndex,
})
}
@@ -213,7 +211,7 @@ const removeRequest = () => {
props.picked.folderPath === props.folderPath &&
props.picked.requestIndex === props.requestIndex
) {
emit("select", { picked: null })
emit("select", null)
}
removeGraphqlRequest(props.folderPath, props.requestIndex)