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
chore: lint
liyasthomas3559d98df192
diff --git a/components/collections/graphql/Collection.vue b/components/collections/graphql/Collection.vueindex 022657f00..3273c9afb 100644--- a/components/collections/graphql/Collection.vue+++ b/components/collections/graphql/Collection.vue@@ -198,7 +198,11 @@ export default Vue.extend({},removeCollection() {// Cancel pick if picked collection is deleted- if (this.picked && this.picked.pickedType === "gql-my-collection" && this.picked.collectionIndex === this.collectionIndex) {+ if (+ this.picked &&+ this.picked.pickedType === "gql-my-collection" &&+ this.picked.collectionIndex === this.collectionIndex+ ) {this.$emit("select", { picked: null })}removeGraphqlCollection(this.collectionIndex)diff --git a/components/collections/graphql/Folder.vue b/components/collections/graphql/Folder.vueindex c7850e1b0..b03dbad5f 100644--- a/components/collections/graphql/Folder.vue+++ b/components/collections/graphql/Folder.vue@@ -182,7 +182,11 @@ export default Vue.extend({},removeFolder() {// Cancel pick if the picked folder is deleted- if (this.picked && this.picked.pickedType === "gql-my-folder" && this.picked.folderPath === this.folderPath) {+ if (+ this.picked &&+ this.picked.pickedType === "gql-my-folder" &&+ this.picked.folderPath === this.folderPath+ ) {this.$emit("select", { picked: null })}diff --git a/components/collections/graphql/Request.vue b/components/collections/graphql/Request.vueindex 35ce14937..4bcee0bbe 100644--- a/components/collections/graphql/Request.vue+++ b/components/collections/graphql/Request.vue@@ -123,7 +123,12 @@ export default Vue.extend({},removeRequest() {// Cancel pick if the picked request is deleted- if (this.picked && this.picked.pickedType === "gql-my-request" && this.picked.folderPath === this.folderPath && this.picked.requestIndex === this.requestIndex) {+ if (+ this.picked &&+ this.picked.pickedType === "gql-my-request" &&+ this.picked.folderPath === this.folderPath &&+ this.picked.requestIndex === this.requestIndex+ ) {this.$emit("select", { picked: null })}diff --git a/components/collections/index.vue b/components/collections/index.vueindex 08d4605d5..a64918447 100644--- a/components/collections/index.vue+++ b/components/collections/index.vue@@ -532,7 +532,11 @@ export default {removeCollection({ collectionsType, collectionIndex, collectionID }) {if (collectionsType.type === "my-collections") {// Cancel pick if picked collection is deleted- if (this.picked && this.picked.pickedType === "my-collection" && this.picked.collectionIndex === collectionIndex) {+ if (+ this.picked &&+ this.picked.pickedType === "my-collection" &&+ this.picked.collectionIndex === collectionIndex+ ) {this.$emit("select", { picked: null })}@@ -543,7 +547,11 @@ export default {})} else if (collectionsType.type === "team-collections") {// Cancel pick if picked collection is deleted- if (this.picked && this.picked.pickedType === "teams-collection" && this.picked.collectionID === collectionID) {+ if (+ this.picked &&+ this.picked.pickedType === "teams-collection" &&+ this.picked.collectionID === collectionID+ ) {this.$emit("select", { picked: null })}diff --git a/components/collections/my/Folder.vue b/components/collections/my/Folder.vueindex e999c3bbf..d323b3c3e 100644--- a/components/collections/my/Folder.vue+++ b/components/collections/my/Folder.vue@@ -195,7 +195,11 @@ export default {removeFolder() {// TODO: Bubble it up ?// Cancel pick if picked folder was deleted- if (this.picked && this.picked.pickedType === "my-folder" && this.picked.folderPath === this.folderPath) {+ if (+ this.picked &&+ this.picked.pickedType === "my-folder" &&+ this.picked.folderPath === this.folderPath+ ) {this.$emit("select", { picked: null })}removeRESTFolder(this.folderPath)diff --git a/components/collections/teams/Folder.vue b/components/collections/teams/Folder.vueindex e5d0c951e..84c6ac100 100644--- a/components/collections/teams/Folder.vue+++ b/components/collections/teams/Folder.vue@@ -190,7 +190,11 @@ export default {removeFolder() {if (this.collectionsType.selectedTeam.myRole !== "VIEWER") {// Cancel pick if picked collection folder was deleted- if (this.picked && this.picked.pickedType === "teams-folder" && this.picked.folderID === this.folder.id) {+ if (+ this.picked &&+ this.picked.pickedType === "teams-folder" &&+ this.picked.folderID === this.folder.id+ ) {this.$emit("select", { picked: null })}diff --git a/components/history/graphql/Card.vue b/components/history/graphql/Card.vueindex 737c7e69a..60d30f5bb 100644--- a/components/history/graphql/Card.vue+++ b/components/history/graphql/Card.vue@@ -9,7 +9,8 @@readonly:value="entry.url":placeholder="$t('empty_req_name')"- class="bg-transparent"+ class="cursor-pointer text-sm bg-transparent"+ @click="$emit('use-entry')"/></li><buttondiff --git a/components/history/rest/Card.vue b/components/history/rest/Card.vueindex 5051d6bfa..e5d622542 100644--- a/components/history/rest/Card.vue+++ b/components/history/rest/Card.vue@@ -2,9 +2,10 @@<div><div class="show-on-large-screen"><span- class="p-2 m-2 truncate"+ class="p-2 m-2 truncate inline-flex cursor-pointer items-center text-sm":class="entryStatus.className":style="{ '--status-code': entry.status }"+ @click="$emit('use-entry')">{{ `${entry.method} \xA0 • \xA0 ${entry.status}` }}</span>@@ -15,7 +16,8 @@readonly:value="entry.name":placeholder="$t('empty_req_name')"- class="bg-transparent"+ class="cursor-pointer text-sm bg-transparent"+ @click="$emit('use-entry')"/></li><span>