Skip to content

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

fix storage read interface

ammarahm-ed485d6e3daf6c
diff --git a/apps/mobile/src/utils/Storage.js b/apps/mobile/src/utils/Storage.js
index 999576e36..7f978f8b6 100644
--- a/apps/mobile/src/utils/Storage.js
+++ b/apps/mobile/src/utils/Storage.js
@@ -6,15 +6,13 @@ import {PERMISSIONS, requestMultiple, RESULTS} from "react-native-permissions";
import {MMKV} from "./MMKV";
import { Platform } from "react-native";
import { ANDROID_PATH, IOS_PATH } from ".";
-import { eSendEvent } from "../services/EventManager";
async function read(key, isArray = false) {
let data = await MMKV.getItem(key);
if (!data) return null;
try {
data = JSON.parse(data);
-
- data = isArray ? [...data] : data;
+ //data = Array.isArray(data) ? [...data] : data;
} catch (e) {
}