Skip to content

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

mobile: cleanup

Ammar Ahmeda9c9ca29c89c
diff --git a/apps/mobile/app/components/list/list-item.wrapper.tsx b/apps/mobile/app/components/list/list-item.wrapper.tsx
index 2da9c1da0..175e1c170 100644
--- a/apps/mobile/app/components/list/list-item.wrapper.tsx
+++ b/apps/mobile/app/components/list/list-item.wrapper.tsx
@@ -119,15 +119,9 @@ export function ListItemWrapper(props: ListItemWrapperProps) {
clearTimeout(refreshTimeout.current);
const idx = index;
refreshTimeout.current = setTimeout(async () => {
- if (idx !== previousIndex.current) {
- return;
- }
+ if (idx !== previousIndex.current) return;
const resolvedItem = await items?.item(idx, resolveItems);
- if (idx !== previousIndex.current) {
- console.log("cancel", idx, previousIndex.current);
- return;
- }
-
+ if (idx !== previousIndex.current) return;
refreshItem(resolvedItem);
}, 100);
} catch (e) {