From 802ebb68a84ddf3d7e50fd5398626ae831562787 Mon Sep 17 00:00:00 2001 From: ajugo Date: Tue, 12 Mar 2024 14:18:51 +0100 Subject: [PATCH] Fix inventory sharing [SCI-10428] (#7260) --- app/javascript/vue/repositories/modals/share.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/vue/repositories/modals/share.vue b/app/javascript/vue/repositories/modals/share.vue index f2086b615..457c49d77 100644 --- a/app/javascript/vue/repositories/modals/share.vue +++ b/app/javascript/vue/repositories/modals/share.vue @@ -101,8 +101,8 @@ export default { const data = { select_all_teams: this.sharedWithAllRead, select_all_write_permission: this.sharedWithAllWrite, - share_team_ids: this.shareableTeams.filter((team) => team.private_shared_with).map((team) => team.id), - write_permissions: this.shareableTeams.filter((team) => team.private_shared_with_write).map((team) => team.id), + share_team_ids: this.shareableTeams.filter((team) => team.attributes.private_shared_with).map((team) => team.id), + write_permissions: this.shareableTeams.filter((team) => team.attributes.private_shared_with_write).map((team) => team.id), permission_changes: this.permission_changes }; axios.post(this.repository.urls.share, data).then(() => {