mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-03 04:31:46 +02:00
fix: #135
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user