mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 20:11:32 +02:00
fill linked institution ids on data fetching (#8042)
GitOrigin-RevId: 5c89d32331e745e3d993d549337c2c413193a2b2
This commit is contained in:
@@ -83,12 +83,18 @@ const setData = (state: State, action: ActionSetData) => {
|
||||
idAttribute: 'email',
|
||||
})
|
||||
const byId = normalized || {}
|
||||
const linkedInstitutionIds = action.payload
|
||||
.filter(email => Boolean(email.samlProviderId))
|
||||
.map(email => email.samlProviderId) as NonNullable<
|
||||
UserEmailData['samlProviderId']
|
||||
>[]
|
||||
|
||||
return {
|
||||
...state,
|
||||
data: {
|
||||
...initialState.data,
|
||||
byId,
|
||||
linkedInstitutionIds,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user