@influenzanet/case-web-app-core 2.7.5-staging.4 → 2.7.5-staging.5
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/build/index.es.js +1 -1
- package/build/index.es.js.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -13080,7 +13080,7 @@ var userSlice = createSlice({
|
|
|
13080
13080
|
var _a = action.payload, profileId = _a.profileId, studyKey = _a.studyKey;
|
|
13081
13081
|
var updatedProfiles = state.currentUser.profiles.map(function (profile) {
|
|
13082
13082
|
return profile.id === profileId
|
|
13083
|
-
? __assign(__assign({}, profile), { studies: union$1(profile.studies, studyKey) }) : profile;
|
|
13083
|
+
? __assign(__assign({}, profile), { studies: union$1(profile.studies, [studyKey]) }) : profile;
|
|
13084
13084
|
});
|
|
13085
13085
|
if (!isEqual(updatedProfiles, state.currentUser.profiles)) {
|
|
13086
13086
|
state.currentUser.profiles = updatedProfiles;
|