@@ -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}'