From 4414b76049ae60a3409c5e5322d1132cd1dc16ff Mon Sep 17 00:00:00 2001 From: Daan Klarenbeek Date: Wed, 28 Jun 2023 14:02:33 +0200 Subject: [PATCH] fix(ReadmeSync): incorrect object merging --- packages/octocat/src/lib/structures/ReadmeSync.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/octocat/src/lib/structures/ReadmeSync.ts b/packages/octocat/src/lib/structures/ReadmeSync.ts index 0108c10b..7d4f0788 100644 --- a/packages/octocat/src/lib/structures/ReadmeSync.ts +++ b/packages/octocat/src/lib/structures/ReadmeSync.ts @@ -73,8 +73,8 @@ export class ReadmeSync { try { const parsedToml = parse(toml); - const mergedConfig = _.merge(parsedToml, baseConfig); - if (typeof parsedToml.repo === "object") mergedConfig.repo = { ...baseConfig.repo, ...parsedToml.repo }; + const mergedConfig = _.merge(baseConfig, parsedToml); + // if (typeof parsedToml.repo === "object") mergedConfig.repo = { ...baseConfig.repo, ...parsedToml.repo }; const zodSchema = z.object({ repo: z.object({