@gen3/core 0.11.55 → 0.11.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/features/cohort/cohortManagerSlice.d.ts +1 -0
- package/dist/dts/features/cohort/cohortManagerSlice.d.ts.map +1 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -1541,7 +1541,9 @@ const getCurrentCohortId = (state)=>state.currentCohortId;
|
|
|
1541
1541
|
customName: uniqueName
|
|
1542
1542
|
});
|
|
1543
1543
|
cohortsAdapter.addOne(state, cohort);
|
|
1544
|
-
|
|
1544
|
+
if (action.payload?.setAsCurrent) {
|
|
1545
|
+
state.currentCohortId = cohort.id;
|
|
1546
|
+
}
|
|
1545
1547
|
},
|
|
1546
1548
|
updateCohortName: (state, action)=>{
|
|
1547
1549
|
const { id, name } = action.payload;
|