@@ -24,7 +24,7 @@ type Props = {
24
24
} ;
25
25
26
26
function CollectionMemberList ( { collection, invitedInSession } : Props ) {
27
- const { memberships, collectionGroupMemberships } = useStores ( ) ;
27
+ const { memberships, groupMemberships } = useStores ( ) ;
28
28
const can = usePolicy ( collection ) ;
29
29
const { t } = useTranslation ( ) ;
30
30
const theme = useTheme ( ) ;
@@ -39,8 +39,8 @@ function CollectionMemberList({ collection, invitedInSession }: Props) {
39
39
40
40
const { request : fetchGroupMemberships } = useRequest (
41
41
React . useCallback (
42
- ( ) => collectionGroupMemberships . fetchAll ( { id : collectionId } ) ,
43
- [ collectionGroupMemberships , collectionId ]
42
+ ( ) => groupMemberships . fetchAll ( { id : collectionId } ) ,
43
+ [ groupMemberships , collectionId ]
44
44
)
45
45
) ;
46
46
@@ -75,7 +75,7 @@ function CollectionMemberList({ collection, invitedInSession }: Props) {
75
75
76
76
return (
77
77
< >
78
- { collectionGroupMemberships
78
+ { groupMemberships
79
79
. inCollection ( collection . id )
80
80
. sort ( ( a , b ) =>
81
81
(
@@ -103,12 +103,12 @@ function CollectionMemberList({ collection, invitedInSession }: Props) {
103
103
permission : CollectionPermission | typeof EmptySelectValue
104
104
) => {
105
105
if ( permission === EmptySelectValue ) {
106
- await collectionGroupMemberships . delete ( {
106
+ await groupMemberships . delete ( {
107
107
collectionId : collection . id ,
108
108
groupId : membership . groupId ,
109
109
} ) ;
110
110
} else {
111
- await collectionGroupMemberships . create ( {
111
+ await groupMemberships . create ( {
112
112
collectionId : collection . id ,
113
113
groupId : membership . groupId ,
114
114
permission,
0 commit comments