client: better error for already clipped note

Changelog: Fixed
This commit is contained in:
Johann150 2025-02-06 19:48:21 +01:00
parent 81cf69c9bf
commit ab9c6d46a3
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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 }),