fix(config): fix duplicated array value

This commit is contained in:
JellyBrick
2024-01-06 01:07:57 +09:00
parent 6e6acd6f19
commit a3a411e197

View File

@ -1,5 +1,5 @@
import Store from 'electron-store';
import { deepmerge } from 'deepmerge-ts';
import { deepmergeCustom } from 'deepmerge-ts';
import defaultConfig from './defaults';
@ -8,6 +8,10 @@ import plugins from './plugins';
import { restart } from '@/providers/app-controls';
const deepmerge = deepmergeCustom({
mergeArrays: false,
});
const set = (key: string, value: unknown) => {
store.set(key, value);
};