Skip to content

Commit

Permalink
fix: Edit branch (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
callmevladik committed Nov 18, 2024
1 parent fa62847 commit cb7d065
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ export const CodebaseBranchesList = () => {
{codebaseBranches.length ? (
<>
{codebaseBranches.map((codebaseBranchData: CodebaseBranchKubeObjectInterface) => {
const branchId = codebaseBranchData.spec.branchName;
const codebaseBranch = codebaseBranchData?.jsonData;
const branchId = codebaseBranch.spec.branchName;

return (
<CodebaseBranch
key={branchId}
id={branchId}
codebaseBranchData={codebaseBranchData}
codebaseBranchData={codebaseBranch}
expandedPanel={expandedPanel}
handlePanelChange={handleChange}
/>
Expand All @@ -64,7 +65,7 @@ export const CodebaseBranchesList = () => {
handleClick={() =>
setDialog(ManageCodebaseBranchDialog, {
codebase: component,
defaultBranch: codebaseBranches?.[0],
defaultBranch: codebaseBranches?.[0]?.jsonData,
pipelines,
})
}
Expand Down

0 comments on commit cb7d065

Please sign in to comment.