From ab9c6d46a37299afead57c0d626b2406bfa82716 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Thu, 6 Feb 2025 19:48:21 +0100 Subject: [PATCH] client: better error for already clipped note Changelog: Fixed --- packages/client/src/scripts/get-note-menu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }),