From a921fa4c80dda46d371347600c5b579e5e393430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Tr=C3=A1vn=C3=ADk?= Date: Tue, 23 Dec 2025 12:37:12 +0100 Subject: [PATCH] fix(info): optimize effective local path retrieval in RepositoryInfoTabContent --- app/client/modules/repositories/tabs/info.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/client/modules/repositories/tabs/info.tsx b/app/client/modules/repositories/tabs/info.tsx index efd52243..57c1b9aa 100644 --- a/app/client/modules/repositories/tabs/info.tsx +++ b/app/client/modules/repositories/tabs/info.tsx @@ -41,6 +41,7 @@ export const RepositoryInfoTabContent = ({ repository }: Props) => { const [showConfirmDialog, setShowConfirmDialog] = useState(false); const isImportedLocal = repository.type === "local" && repository.config.isExistingRepository; + const effectiveLocalPath = getEffectiveLocalPath(repository); const updateMutation = useMutation({ ...updateRepositoryMutation(), @@ -121,10 +122,10 @@ export const RepositoryInfoTabContent = ({ repository }: Props) => {
Status

{repository.status || "unknown"}

- {getEffectiveLocalPath(repository) && ( + {effectiveLocalPath && (
Effective Local Path
-

{getEffectiveLocalPath(repository)}

+

{effectiveLocalPath}

)}