diff --git a/tabby-core/src/services/profiles.service.ts b/tabby-core/src/services/profiles.service.ts index b206cf79..090dacd0 100644 --- a/tabby-core/src/services/profiles.service.ts +++ b/tabby-core/src/services/profiles.service.ts @@ -120,11 +120,10 @@ export class ProfilesService { async writeProfile (profile: PartialProfile, saveConfig = true): Promise { const cProfile = this.config.store.profiles.find(p => p.id === profile.id) if (cProfile) { - // Fully replace the config - for (const k in cProfile) { - // eslint-disable-next-line @typescript-eslint/no-dynamic-delete - delete cProfile[k] + if (!profile.group) { + delete cProfile.group } + Object.assign(cProfile, profile) if (saveConfig) {