Skip to content

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

fix storage

ammarahm-ed4057d9bf1984
diff --git a/apps/mobile/src/utils/storage.js b/apps/mobile/src/utils/storage.js
index 6832e14d2..71a49e076 100644
--- a/apps/mobile/src/utils/storage.js
+++ b/apps/mobile/src/utils/storage.js
@@ -11,7 +11,7 @@ async function read(key, isArray = false) {
data = await FastStorage.getMap(key);
}
- return data;
+ return isArray ? data.slice() : data;
}
async function write(key, data) {