From db5531f0f04c8ba71aca1173f76c3f7df4335ccb Mon Sep 17 00:00:00 2001 From: thecodrr Date: Tue, 17 Mar 2020 12:14:02 +0500 Subject: [PATCH] fix: #135 --- apps/web/src/common/selectionoptions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/common/selectionoptions.js b/apps/web/src/common/selectionoptions.js index b6222fcfa..b17f5c8d2 100644 --- a/apps/web/src/common/selectionoptions.js +++ b/apps/web/src/common/selectionoptions.js @@ -30,7 +30,7 @@ const DeleteOption = createOption(Icon.Trash2, async function(state) { const item = state.selectedItems[0]; var isAnyNoteOpened = false; const editorState = editorStore.getState(); - const items = state.selectedItems.map(async item => { + const items = state.selectedItems.map(item => { if (item.id === editorState.session.id) isAnyNoteOpened = true; if (item.locked) return 0; return item.id;