diff --git a/apps/directory/package.json b/apps/directory/package.json index bb73d94455..fe92c1eaef 100644 --- a/apps/directory/package.json +++ b/apps/directory/package.json @@ -3,7 +3,6 @@ "version": "0.0.1", "description": "BBMRI Directory app, for browsing collections and biobanks in EMX2", "main": "index.js", - "author": "Jelmer Veen ", "license": "LGPL3", "private": true, "scripts": { diff --git a/apps/directory/src/App.vue b/apps/directory/src/App.vue index 148a03bd82..a076dc3624 100644 --- a/apps/directory/src/App.vue +++ b/apps/directory/src/App.vue @@ -1,5 +1,5 @@ - diff --git a/apps/directory/src/components/checkout-components/CollectionSelector.vue b/apps/directory/src/components/checkout-components/CollectionSelector.vue index fe32080c96..fad4b040ab 100644 --- a/apps/directory/src/components/checkout-components/CollectionSelector.vue +++ b/apps/directory/src/components/checkout-components/CollectionSelector.vue @@ -91,16 +91,21 @@ export default { methods: { handleCollectionStatus(event) { const { checked } = event.target; - const collectionData = { - biobank: this.biobankData, - collections: JSON.parse(JSON.stringify(this.collections)), - bookmark: this.bookmark, - }; - if (checked) { - this.checkoutStore.addCollectionsToSelection(collectionData); + this.checkoutStore.addCollectionsToSelection( + this.biobankData, + this.collections.map((collection) => ({ + label: collection.label, + value: collection.value, + })), + this.bookmark + ); } else { - this.checkoutStore.removeCollectionsFromSelection(collectionData); + this.checkoutStore.removeCollectionsFromSelection( + { name: this.biobankData.name }, + this.collections.map((collection) => collection.value), + this.bookmark + ); } }, }, diff --git a/apps/directory/src/components/generators/ViewGenerator.vue b/apps/directory/src/components/generators/ViewGenerator.vue index 38930c0f5b..6dab70382b 100644 --- a/apps/directory/src/components/generators/ViewGenerator.vue +++ b/apps/directory/src/components/generators/ViewGenerator.vue @@ -1,12 +1,14 @@