From 3561d6e89920f257e04d1e285ca4aedff6c2145d Mon Sep 17 00:00:00 2001 From: Kingsley Yung Date: Tue, 17 Jun 2025 12:56:43 +0800 Subject: [PATCH] fix: preserve default sync folder path when no overriding The spread operator `...` replaces `baseConfig.webDav` with `defaultOverride.webDav` entirely, instead of merging them. Hence, the default sync folder path in `baseConfig.webDav` is wiped out. This patch fixes this issue by manually providing a merged `webDav`. Fix: The second issue in https://github.com/johannesjo/super-productivity/issues/4545#issuecomment-2974843258 --- src/app/imex/sync/sync-config.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/imex/sync/sync-config.service.ts b/src/app/imex/sync/sync-config.service.ts index cdf0d1ea05..de7cf9e45c 100644 --- a/src/app/imex/sync/sync-config.service.ts +++ b/src/app/imex/sync/sync-config.service.ts @@ -42,6 +42,10 @@ export class SyncConfigService { return { ...baseConfig, ...defaultOverride, + webDav: { + ...baseConfig.webDav, + ...defaultOverride.webDav, + }, encryptKey: '', }; })