Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix post item membership #1427

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@emotion/styled": "11.13.0",
"@graasp/chatbox": "3.2.1",
"@graasp/map": "1.17.0",
"@graasp/query-client": "3.22.2",
"@graasp/query-client": "3.22.3",
"@graasp/sdk": "4.26.0",
"@graasp/translations": "1.35.1",
"@graasp/ui": "4.26.0",
Expand Down
6 changes: 3 additions & 3 deletions src/components/item/sharing/ItemMembershipsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const ItemMembershipsTable = ({

const { data: currentMember } = hooks.useCurrentMember();
const { mutate: editItemMembership } = mutations.useEditItemMembership();
const { mutate: shareItem } = mutations.usePostItemMembership();
const { mutate: postItemMembership } = mutations.usePostItemMembership();

const [open, setOpen] = useState(false);
const [membershipToDelete, setMembershipToDelete] =
Expand All @@ -74,9 +74,9 @@ const ItemMembershipsTable = ({
itemId: item.id,
});
} else if (im.account.type === AccountType.Individual) {
shareItem({
postItemMembership({
id: item.id,
email: im.account.email,
accountId: im.account.id,
permission,
});
}
Expand Down
23 changes: 17 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1890,19 +1890,19 @@ __metadata:
languageName: node
linkType: hard

"@graasp/query-client@npm:3.22.2":
version: 3.22.2
resolution: "@graasp/query-client@npm:3.22.2"
"@graasp/query-client@npm:3.22.3":
version: 3.22.3
resolution: "@graasp/query-client@npm:3.22.3"
dependencies:
"@tanstack/react-query": "npm:4.36.1"
"@tanstack/react-query-devtools": "npm:4.36.1"
axios: "npm:1.7.4"
axios: "npm:1.7.5"
http-status-codes: "npm:2.3.0"
peerDependencies:
"@graasp/sdk": ^4.0.0
"@graasp/translations": "*"
react: ^18.0.0
checksum: 10/518fd2f7f3a0725f506e49b584e511c23f4a2339194adf3593040a90fa669cace59d4ad45702fc253bac550abb420fa6f3369d81fa8b933c3f1351e095ae9fbc
checksum: 10/a1cf0e884e77ca928f7b983fdde7e3b7ca55b23c93d6ec8d79cd3e4db7f675a2e153a5072a0085d8aa5fce977ef7e06de684f23d4e37737ca28ddfccf0914eb7
languageName: node
linkType: hard

Expand Down Expand Up @@ -4958,6 +4958,17 @@ __metadata:
languageName: node
linkType: hard

"axios@npm:1.7.5":
version: 1.7.5
resolution: "axios@npm:1.7.5"
dependencies:
follow-redirects: "npm:^1.15.6"
form-data: "npm:^4.0.0"
proxy-from-env: "npm:^1.1.0"
checksum: 10/6cbcfe943a84089f420a900a3a3aeb54ee94dcc9c2b81b150434896357be5d1079eff0b1bbb628597371e79f896b1bc5776df04184756ba99656ff31df9a75bf
languageName: node
linkType: hard

"axobject-query@npm:~3.1.1":
version: 3.1.1
resolution: "axobject-query@npm:3.1.1"
Expand Down Expand Up @@ -8069,7 +8080,7 @@ __metadata:
"@emotion/styled": "npm:11.13.0"
"@graasp/chatbox": "npm:3.2.1"
"@graasp/map": "npm:1.17.0"
"@graasp/query-client": "npm:3.22.2"
"@graasp/query-client": "npm:3.22.3"
"@graasp/sdk": "npm:4.26.0"
"@graasp/translations": "npm:1.35.1"
"@graasp/ui": "npm:4.26.0"
Expand Down