fix: fix insert

This commit is contained in:
JellyBrick
2023-11-11 20:05:38 +09:00
parent b470dbd6b9
commit b77f5c9ecc
8 changed files with 40 additions and 28 deletions

View File

@ -14,7 +14,7 @@ const set = (key: string, value: unknown) => {
store.set(key, value);
};
const setPartial = (key: string, value: object) => {
deepmerge(store.get(key), value);
deepmerge(store.get(key) ?? {}, value);
store.set(value);
};