Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: copy by reference (#3517)

Martin MacDonald2ebd5c64bdd3
diff --git a/web/src/store/v1/memo.ts b/web/src/store/v1/memo.ts
index 752c7a255..5d1fe2fe7 100644
--- a/web/src/store/v1/memo.ts
+++ b/web/src/store/v1/memo.ts
@@ -17,7 +17,7 @@ export const useMemoStore = create(
getState: () => get(),
fetchMemos: async (request: Partial<ListMemosRequest>) => {
const { memos, nextPageToken } = await memoServiceClient.listMemos(request);
- const memoMap = get().memoMapByName;
+ const memoMap = { ...get().memoMapByName };
for (const memo of memos) {
memoMap[memo.name] = memo;
}