client: better error for already clipped note
Changelog: Fixed
This commit is contained in:
parent
81cf69c9bf
commit
ab9c6d46a3
1 changed files with 1 additions and 1 deletions
|
@ -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 }),
|
||||
|
|
Loading…
Add table
Reference in a new issue