chore: lint

This commit is contained in:
liyasthomas
2021-06-16 19:13:07 +05:30
parent 0a4251825b
commit 3559d98df1
8 changed files with 42 additions and 10 deletions

View File

@@ -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)

View File

@@ -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 })
}

View File

@@ -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 })
}