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

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