From 5cee488abbb00ae9ccdb0bd7146d2d2fa92a94d2 Mon Sep 17 00:00:00 2001 From: thecodrr Date: Mon, 14 Sep 2020 14:59:02 +0500 Subject: [PATCH] feat: remove favorite from multiselect options --- apps/web/src/common/selectionoptions.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/apps/web/src/common/selectionoptions.js b/apps/web/src/common/selectionoptions.js index 2e2a1c656..435dc774c 100644 --- a/apps/web/src/common/selectionoptions.js +++ b/apps/web/src/common/selectionoptions.js @@ -63,17 +63,6 @@ const DeleteOption = createOption("deleteOption", Icon.Trash, async function ( } }); -const FavoriteOption = createOption("favoriteOption", Icon.Star, function ( - state -) { - // we know only notes can be favorited - state.selectedItems.forEach(async (item) => { - if (item.favorite) return; - await db.notes.note(item.id).favorite(); - }); - notesStore.refresh(); -}); - const UnfavoriteOption = createOption("unfavoriteOption", Icon.Star, function ( state ) { @@ -107,7 +96,7 @@ const RestoreOption = createOption( } ); -const NotesOptions = createOptions([AddToNotebookOption, FavoriteOption]); +const NotesOptions = createOptions([AddToNotebookOption]); const NotebooksOptions = createOptions(); const TopicOptions = createOptions(); const TrashOptions = createOptions([RestoreOption]);