Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

show toast quick access menu

ammarahm-ed042c50f09d1f
diff --git a/apps/mobile/src/utils/functions.js b/apps/mobile/src/utils/functions.js
index 329d14097..a177db41d 100644
--- a/apps/mobile/src/utils/functions.js
+++ b/apps/mobile/src/utils/functions.js
@@ -46,7 +46,7 @@ export const deleteItems = async (item) => {
let message = history.selectedItemsList.length + msgPart + ' moved to trash.';
let itemsCopy = [...history.selectedItemsList];
- if (history.selectedItemsList[0].type !== 'topic') {
+ if (topics.length === 0 && (notes.length > 0 || notebooks.length > 0)) {
ToastEvent.show(
message,
'error',
@@ -73,4 +73,4 @@ export const deleteItems = async (item) => {
updateEvent({type: Actions.TRASH});
updateEvent({type: Actions.CLEAR_SELECTION});
updateEvent({type: Actions.SELECTION_MODE, enabled: false});
-}
+};