This commit is contained in:
Andrew Bastin
2021-05-29 22:43:05 -04:00
parent fe8bbc6cc8
commit 9ad22e2600
6 changed files with 44 additions and 22 deletions

View File

@@ -170,18 +170,20 @@ export default Vue.extend({
},
computed: {
isSelected(): boolean {
return this.picked &&
return (
this.picked &&
this.picked.pickedType === "gql-my-collection" &&
this.picked.collectionIndex === this.collectionIndex
}
)
},
},
methods: {
pick() {
this.$emit("select", {
picked: {
pickedType: "gql-my-collection",
collectionIndex: this.collectionIndex
}
collectionIndex: this.collectionIndex,
},
})
},
toggleShowChildren() {