From c146383735c618d6a336c00d56a845e64339ed07 Mon Sep 17 00:00:00 2001 From: kikootwo Date: Wed, 18 Feb 2026 17:51:35 -0500 Subject: [PATCH] Don't coerce customPath to undefined Pass sanitizedCustomPath through directly instead of using `sanitizedCustomPath || undefined`. The previous fallback converted falsy values (e.g. empty string) to undefined; this change preserves explicit empty or falsy values so downstream logic can distinguish them from undefined. --- src/components/admin/download-clients/DownloadClientModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/admin/download-clients/DownloadClientModal.tsx b/src/components/admin/download-clients/DownloadClientModal.tsx index 020d1d4..796abe6 100644 --- a/src/components/admin/download-clients/DownloadClientModal.tsx +++ b/src/components/admin/download-clients/DownloadClientModal.tsx @@ -286,7 +286,7 @@ export function DownloadClientModal({ remotePath: remotePathMappingEnabled ? remotePath : undefined, localPath: remotePathMappingEnabled ? localPath : undefined, category, - customPath: sanitizedCustomPath || undefined, + customPath: sanitizedCustomPath, postImportCategory, };