お気に入りを解除できるように

This commit is contained in:
syuilo
2018-10-13 00:54:30 +09:00
parent 1012b2b2c7
commit 719fac6480
4 changed files with 43 additions and 7 deletions

View File

@@ -75,7 +75,9 @@ export const pack = (
delete _favorite._id;
// Populate note
_favorite.note = await packNote(_favorite.noteId, me);
_favorite.note = await packNote(_favorite.noteId, me, {
detail: true
});
// (データベースの不具合などで)投稿が見つからなかったら
if (_favorite.note == null) {