upd: use appearNote instead of props.note

This commit is contained in:
Mar0xy 2023-10-01 04:03:00 +02:00
parent 74a07c3882
commit 31e0e07d92
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
2 changed files with 2 additions and 2 deletions

View File

@ -373,7 +373,7 @@ function like(): void {
pleaseLogin();
showMovedDialog();
os.api('notes/reactions/create', {
noteId: props.note.id,
noteId: apperNote.id,
reaction: '❤️',
});
const el = likeButton.value as HTMLElement | null | undefined;

View File

@ -440,7 +440,7 @@ function like(): void {
pleaseLogin();
showMovedDialog();
os.api('notes/reactions/create', {
noteId: props.note.id,
noteId: appearNote.id,
reaction: '❤️',
});
const el = likeButton.value as HTMLElement | null | undefined;