Skip to content

Commit

Permalink
Add back missing reference to state (#1506)
Browse files Browse the repository at this point in the history
so that state is not dropped when adding permission display names. The previous code was improper Redux behavior.
  • Loading branch information
ryandberger authored Jul 23, 2024
1 parent 8b5274e commit 48ca517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discoverServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export function discoveryReducer(state = {}, action) {
for (const entry of action.data.permissionSets || []) {
permissions[entry.permissionName] = entry.displayName;
}
return { permissionDisplayNames: { ...state.permissionDisplayNames, ...permissions } };
return { ...state, permissionDisplayNames: { ...state.permissionDisplayNames, ...permissions } };
}
case 'DISCOVERY_PROVIDERS': {
if (action.data.provides?.length > 0) {
Expand Down

0 comments on commit 48ca517

Please sign in to comment.