ReactionsViewerが消えることがある問題を修正
This commit is contained in:
parent
c631e14e53
commit
2d89741afb
3 changed files with 2 additions and 4 deletions
|
|
@ -45,6 +45,7 @@ export function useNoteCapture(props: {
|
|||
const currentCount = (note.value.reactions || {})[reaction] || 0;
|
||||
|
||||
note.value.reactions[reaction] = Math.max(0, currentCount - 1);
|
||||
if (note.value.reactions[reaction] === 0) delete note.value.reactions[reaction];
|
||||
|
||||
if ($i && (body.userId === $i.id)) {
|
||||
note.value.myReaction = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue