Skip to content

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

fix array getting locked

ammarahm-ed25606af7ae10
diff --git a/apps/mobile/src/utils/storage.js b/apps/mobile/src/utils/storage.js
index 63f656c01..6832e14d2 100644
--- a/apps/mobile/src/utils/storage.js
+++ b/apps/mobile/src/utils/storage.js
@@ -16,7 +16,7 @@ async function read(key, isArray = false) {
async function write(key, data) {
if (data.length !== undefined) {
- return await setArray(key, data);
+ return await setArray(key, data.slice());
} else {
return await FastStorage.setMap(key, data);
}