From 998a12339362d075bf9a8261dae59218fef633d0 Mon Sep 17 00:00:00 2001 From: Zhiming Ma Date: Sun, 29 Dec 2024 21:00:36 +0800 Subject: [PATCH] fix(agent): fix merge function for non blank string. --- clients/tabby-agent/src/config/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/tabby-agent/src/config/index.ts b/clients/tabby-agent/src/config/index.ts index da64206b5c21..759c669a7a2c 100644 --- a/clients/tabby-agent/src/config/index.ts +++ b/clients/tabby-agent/src/config/index.ts @@ -32,6 +32,8 @@ const mergeFunction = deepmergeCustom({ const nonBlankStringValues = values.filter((value) => typeof value === "string" && !isBlank(value)); if (nonBlankStringValues.length > 0) { return utils.defaultMergeFunctions.mergeOthers(nonBlankStringValues); + } else { + return ""; } } return utils.actions.defaultMerge;