From d7424e44106649db6abd67ddb0858486761e363f Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 1 Jul 2024 08:17:41 +0200 Subject: [PATCH] fix workspace --- libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index 0d048c0e44..534bd07481 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -1382,7 +1382,7 @@ export function Workspace() { className="btn btn-sm btn-light d-inline-block border border-dark form-control h-100 p-0 pl-2 pr-2 text-dark" icon={null} > - {global.fs.browser.isRequestingCloning ? : currentBranch.name || '-none-'} + {global.fs.browser.isRequestingCloning ? : (currentBranch && currentBranch.name) || '-none-'}
@@ -1421,8 +1421,8 @@ export function Workspace() { }} title={intl.formatMessage({ id: `filePanel.switchToBranch${branch.remote ? 'Title1' : 'Title2'}` })} > -
- {currentBranch.name === branch.name && !branch.remote ? ( +
+ {currentBranch && currentBranch.name === branch.name && !branch.remote ? ( {branch.name} @@ -1430,7 +1430,7 @@ export function Workspace() { ) : ( - {branch.remote ? `${branch.remote}/${branch.name}` : branch.name} + {branch.remote ? `${branch.remote.name}/${branch.name}` : branch.name} )}
@@ -1442,7 +1442,7 @@ export function Workspace() {
- : {branchFilter} from '{currentBranch.name}' + : {branchFilter} from '{currentBranch && currentBranch.name}'