diff --git a/src/pages/component-details/components/CodebaseBranchesList/index.tsx b/src/pages/component-details/components/CodebaseBranchesList/index.tsx index 241f2d01..c2bac62f 100644 --- a/src/pages/component-details/components/CodebaseBranchesList/index.tsx +++ b/src/pages/component-details/components/CodebaseBranchesList/index.tsx @@ -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 ( @@ -64,7 +65,7 @@ export const CodebaseBranchesList = () => { handleClick={() => setDialog(ManageCodebaseBranchDialog, { codebase: component, - defaultBranch: codebaseBranches?.[0], + defaultBranch: codebaseBranches?.[0]?.jsonData, pipelines, }) }