diff --git a/frontend/src/components/dialog/share-to-group.js b/frontend/src/components/dialog/share-to-group.js
index 48fb90431e..578a0cf13f 100644
--- a/frontend/src/components/dialog/share-to-group.js
+++ b/frontend/src/components/dialog/share-to-group.js
@@ -42,8 +42,8 @@ class GroupItem extends React.Component {
{(!isTextMode || this.state.isEditing) &&
-
- {permissions.map((item, index) => {
+
+ {ownedPermissions.map((item, index) => {
return (
)
@@ -74,7 +74,7 @@ class PermissionEditor extends React.Component {
}
{(isTextMode && !this.state.isEditing) &&
- {Utils.sharePerms(permission)}
+ {Utils.sharePerms(currentPermission)}
}