@gen3/core 0.11.55 → 0.11.57

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 CHANGED
@@ -1541,7 +1541,9 @@ const getCurrentCohortId = (state)=>state.currentCohortId;
1541
1541
  customName: uniqueName
1542
1542
  });
1543
1543
  cohortsAdapter.addOne(state, cohort);
1544
- state.currentCohortId = cohort.id;
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;