@@ -126,15 +126,15 @@ export const CreateClone = observer((props: Props) => {
126126
127127 setBranchesList ( branches )
128128 formik . setFieldValue ( 'branch' , initiallySelectedBranch ?. name ?? '' )
129- formik . setFieldValue ( 'dataset' , initiallySelectedBranch ?. dataset ?? '' )
129+ formik . setFieldValue ( 'dataset' , initiallySelectedBranch ?. baseDataset ?? '' )
130130
131131 if ( initiallySelectedBranch ) {
132- const compositeKey = `${ initiallySelectedBranch . name } |${ initiallySelectedBranch . dataset } `
132+ const compositeKey = `${ initiallySelectedBranch . name } |${ initiallySelectedBranch . baseDataset } `
133133 setSelectedBranchKey ( compositeKey )
134134 }
135135
136136 if ( props . api . getSnapshots && initiallySelectedBranch ) {
137- await fetchBranchSnapshotsData ( initiallySelectedBranch . name , initiallySelectedBranch . dataset , initialSnapshotId )
137+ await fetchBranchSnapshotsData ( initiallySelectedBranch . name , initiallySelectedBranch . baseDataset , initialSnapshotId )
138138 } else if ( ! props . api . getSnapshots ) {
139139 const allSnapshots = stores . main ?. snapshots ?. data ?? [ ]
140140 const sortedSnapshots = allSnapshots . slice ( ) . sort ( compareSnapshotsDesc )
@@ -240,8 +240,8 @@ export const CreateClone = observer((props: Props) => {
240240 items = {
241241 branchesList ?. map ( ( branch ) => {
242242 return {
243- value : `${ branch . name } |${ branch . dataset } ` ,
244- children : `${ branch . name } (${ branch . dataset } )` ,
243+ value : `${ branch . name } |${ branch . baseDataset } ` ,
244+ children : `${ branch . name } (${ branch . baseDataset } )` ,
245245 }
246246 } ) ?? [ ]
247247 }
0 commit comments