diff --git a/package-lock.json b/package-lock.json index 663be82a..71665d85 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "unipept-desktop", - "version": "0.6.2", + "version": "0.6.3", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -16952,9 +16952,9 @@ "integrity": "sha512-g9AM+44twT+qQpg4kHhupamMoBr4QscjqjQY8Pdk7cdWHvZs5HuIVTNtH44IbAtN08x9+U3BTT+lp+ZEJpaoFw==" }, "unipept-web-components": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/unipept-web-components/-/unipept-web-components-1.2.5.tgz", - "integrity": "sha512-MmO0uuXIjy2lJd0h7TjyaSFmK1XELNmR+MWqgJr1+lArMF4HWU0VxtQqIDB0tKTY7rglyV7EdNairqYHnys9sA==", + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/unipept-web-components/-/unipept-web-components-1.2.7.tgz", + "integrity": "sha512-0vYXzx/V6PxTLtxbMRyz4IlCxuIbWVzClLK6mPriCfxgBKl8qyFMBAwuwu+NNyCQEHofbHOLwsXJ/pzUp8gUfA==", "requires": { "async": "^3.2.0", "axios": "^0.19.0", diff --git a/package.json b/package.json index cd810a73..5ffd9272 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "node-abi": "^2.19.3", "regenerator-runtime": "^0.13.3", "shared-memory-datastructures": "0.1.8", - "unipept-web-components": "1.2.5", + "unipept-web-components": "1.2.7", "uuid": "^7.0.3", "vue": "^2.6.12", "vue-class-component": "^7.1.0", diff --git a/src/state/ProjectStore.ts b/src/state/ProjectStore.ts index 8140ca9b..9f4dc59a 100644 --- a/src/state/ProjectStore.ts +++ b/src/state/ProjectStore.ts @@ -86,12 +86,9 @@ const projectActions: ActionTree = { Study[] ] ) { + // Make sure all selections from the previously loaded project are cleared. await store.dispatch("resetSelectedAssays"); - - // Make sure that all assays from the previously loaded project are gone. - for (const assayData of store.rootGetters.assays) { - await store.dispatch("removeAssay", assayData.assay); - } + await store.dispatch("removeAllAssays"); if (!projectDirectory.endsWith("/")) { projectDirectory += "/";