Commit 5092f56b authored by Matija Obreza's avatar Matija Obreza

Fix: reset state accessionRefs when switching subsets

parent 481b42ee
......@@ -52,6 +52,7 @@ function dashboardSubsets(state = INITIAL_STATE, action: IReducerAction) {
return update(state, {
subset: {$set: apiCall},
paged: {$set: null},
accessionRefs: {$set: null},
});
}
}
......
......@@ -45,6 +45,7 @@ function publicSubsets(state = INITIAL_STATE, action: IReducerAction) {
} else {
return update(state, {
subset: { $set: apiCall },
accessionRefs: {$set: null},
});
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment