From a3a411e19716c2ab81824b08cfb0e3862dba6952 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sat, 6 Jan 2024 01:07:57 +0900 Subject: [PATCH] fix(config): fix duplicated array value --- src/config/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/config/index.ts b/src/config/index.ts index 1bfe8f30..7b1d91ac 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -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); };