Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Upstream
Liyas Thomas6380063978c8
diff --cc components/graphql/queryeditor.vueindex 6c7b62db5,1940c4751..efb97ff97--- a/components/graphql/queryeditor.vue+++ b/components/graphql/queryeditor.vue@@@ -38,7 -36,6 +36,7 @@@ export defaulttheme: {type: String,required: false,- default: null++ default: null,},onRunGQLQuery: {type: Function,diff --cc components/ui/ace-editor.vueindex c1b9bda76,1be631a13..618c1ce5f--- a/components/ui/ace-editor.vue+++ b/components/ui/ace-editor.vue@@@ -35,7 -33,6 +33,7 @@@ export defaulttheme: {type: String,required: false,- default: null++ default: null,},lang: {type: String,diff --cc components/ui/js-editor.vueindex f658e4809,81b284eb1..94931e3e5--- a/components/ui/js-editor.vue+++ b/components/ui/js-editor.vue@@@ -19,10 -19,9 +19,8 @@@</style><script>- const DEFAULT_THEME = "twilight"-import ace from "ace-builds"import "ace-builds/webpack-resolver"-import jsonParse from "~/helpers/jsonParse"import debounce from "~/helpers/utils/debounce"import * as esprima from "esprima"diff --cc store/postwoman.jsindex 3a1b8a9b5,a9b3f6b04..5f4817875--- a/store/postwoman.js+++ b/store/postwoman.js@@@ -331,9 -301,9 +301,12 @@@ export const mutations =const { request } = payload// Remove the old request from collection- if (Object.prototype.hasOwnProperty.call(request, "oldCollection") && request.oldCollection > -1) {- if (request.hasOwnProperty("oldCollection") && request.oldCollection > -1) {++ if (++ Object.prototype.hasOwnProperty.call(request, "oldCollection") &&++ request.oldCollection > -1++ ) {const folder =- Object.prototype.hasOwnProperty.call(request, "oldFolder") && request.oldFolder >= -1- request.hasOwnProperty("oldFolder") && request.oldFolder >= -1++ Object.prototype.hasOwnProperty.call(request, "oldFolder") && request.oldFolder >= -1? request.oldFolder: request.folderif (folder > -1) {@@@ -341,7 -311,7 +314,10 @@@} else {collections[request.oldCollection].requests.splice(request.requestIndex, 1)}- } else if (Object.prototype.hasOwnProperty.call(request, "oldFolder") && request.oldFolder !== -1) {- } else if (request.hasOwnProperty("oldFolder") && request.oldFolder !== -1) {++ } else if (++ Object.prototype.hasOwnProperty.call(request, "oldFolder") &&++ request.oldFolder !== -1++ ) {collections[request.collection].folders[folder].requests.splice(request.requestIndex, 1)}