Skip to content

Commit

Permalink
Reset active assay
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Nov 25, 2020
1 parent 29353d1 commit 5d6cb7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 2 additions & 5 deletions src/state/ProjectStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,9 @@ const projectActions: ActionTree<ProjectState, any> = {
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 += "/";
Expand Down

0 comments on commit 5d6cb7b

Please sign in to comment.