mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix(core): add missing control of modifyDocDefaultRole track event (#10625)
This commit is contained in:
@@ -56,7 +56,9 @@ export const MembersPermission = ({
|
||||
const changePermission = useAsyncCallback(
|
||||
async (docRole: DocRole) => {
|
||||
try {
|
||||
track.$.sharePanel.$.modifyDocDefaultRole();
|
||||
track.$.sharePanel.$.modifyDocDefaultRole({
|
||||
control: docRole,
|
||||
});
|
||||
await docGrantedUsersService.updateDocDefaultRole(docRole);
|
||||
shareInfoService.shareInfo.revalidate();
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user