diff --git a/packages/client/src/scripts/get-note-menu.ts b/packages/client/src/scripts/get-note-menu.ts index 3078c673a..8fa827aff 100644 --- a/packages/client/src/scripts/get-note-menu.ts +++ b/packages/client/src/scripts/get-note-menu.ts @@ -146,7 +146,7 @@ export function getNoteMenu(props: { os.api('clips/add-note', { clipId: clip.id, noteId: props.note.id }), null, async (err) => { - if (err.id === 'ALREADY_CLIPPED') { + if (err.code === 'ALREADY_CLIPPED') { const confirm = await os.confirm({ type: 'warning', text: i18n.t('confirmToUnclipAlreadyClippedNote', { name: clip.name }),