From 4beb521c52148166af7c08444122aacfba26b363 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/client/modules/repositories/tabs/info.tsx b/app/client/modules/repositories/tabs/info.tsx index 7100fca2..25308f82 100644 --- a/app/client/modules/repositories/tabs/info.tsx +++ b/app/client/modules/repositories/tabs/info.tsx @@ -40,6 +40,9 @@ 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(), onSuccess: () => { @@ -116,10 +119,10 @@ export const RepositoryInfoTabContent = ({ repository }: Props) => {
Status

{repository.status || "unknown"}

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

{getEffectiveLocalPath(repository)}

+

{effectiveLocalPath}

)}