Skip to content

Commit 98111c0

Browse files
committed
chore: add error handle
1 parent 2057faa commit 98111c0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/presentation/components/team/MoreActions.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ const triggerButton = ref<HTMLButtonElement>();
4141
const menuItems: ContextMenuItem[] = [
4242
{
4343
title: t('noteSettings.team.contextMenu.remove'),
44-
onActivate: () => {
45-
handleRemove(props.teamMember);
44+
onActivate: async () => {
4645
hide();
46+
try {
47+
await handleRemove(props.teamMember);
48+
} catch (error) {
49+
console.error('Failed to remove team member', error);
50+
}
4751
},
4852
},
4953
];

0 commit comments

Comments
 (0)