Skip to content

Commit 4fd62eb

Browse files
jnptkdavisagli
andauthored
Update users controlpanel to work with new response format (#7895)
Co-authored-by: David Glick <david@glicksoftware.com>
1 parent 4f930a0 commit 4fd62eb

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update the users controlpanel to be compatible with the new response format of the users endpoint introduced in https://github.com/plone/plone.restapi/pull/1971. @jnptk

packages/volto/src/reducers/users/users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default function users(state = initialState, action = {}) {
117117
case `${LIST_USERS}_SUCCESS`:
118118
return {
119119
...state,
120-
users: action.result,
120+
users: action.result.items ? action.result.items : action.result,
121121
[getRequestKey(action.type)]: {
122122
loading: false,
123123
loaded: true,

packages/volto/theme/themes/pastanaga/extras/main.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,6 @@ button {
394394
}
395395

396396
.users-control-panel .table {
397-
overflow-x: scroll;
398-
399397
&::-webkit-scrollbar {
400398
width: 3px;
401399
height: 3px; /* scrollbar height */

0 commit comments

Comments
 (0)