File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ export const initCurrentCIBuildConfig = (
182182 dockerfileContent : '' ,
183183 buildContext : buildContextValue ,
184184 } ,
185- gitMaterialId : selectedMaterial ?. id ,
185+ gitMaterialId : selectedMaterial ?. value ,
186186 buildContextGitMaterialId : selectedBuildContextGitMaterial ?. id ,
187187 useRootBuildContext,
188188 }
@@ -196,7 +196,7 @@ export const initCurrentCIBuildConfig = (
196196 dockerfileContent : '' ,
197197 buildContext : buildContextValue ,
198198 } ,
199- gitMaterialId : selectedMaterial ?. id ,
199+ gitMaterialId : selectedMaterial ?. value ,
200200 buildContextGitMaterialId : selectedBuildContextGitMaterial ?. id ,
201201 useRootBuildContext,
202202 }
@@ -209,7 +209,7 @@ export const initCurrentCIBuildConfig = (
209209 dockerfileContent : '' ,
210210 buildContext : buildContextValue ,
211211 } ,
212- gitMaterialId : selectedMaterial ?. id ,
212+ gitMaterialId : selectedMaterial ?. value ,
213213 buildContextGitMaterialId : selectedBuildContextGitMaterial ?. id ,
214214 useRootBuildContext,
215215 }
Original file line number Diff line number Diff line change @@ -79,9 +79,10 @@ export default function CIConfigForm({
7979 ...material ,
8080 name : material ?. name || currentMaterial . name ,
8181 url : material ?. url || currentMaterial . url ,
82- value : material ?. checkoutPath || currentMaterial . checkoutPath ,
82+ value : material ?. id || currentMaterial . id ,
8383 label : material ?. name || currentMaterial . name ,
8484 startIcon : getGitProviderIcon ( material ?. url || currentMaterial . url ) ,
85+ checkoutPath : material ?. checkoutPath || currentMaterial . checkoutPath
8586 }
8687 return _currentMaterial
8788 }
@@ -144,6 +145,7 @@ export default function CIConfigForm({
144145 ) ,
145146 )
146147
148+ console . log ( sourceConfig , ' selectedMaterial' , selectedMaterial )
147149 useEffect ( ( ) => {
148150 initBuildArgs ( )
149151 } , [ ] )
@@ -230,6 +232,7 @@ export default function CIConfigForm({
230232 buildContext : buildContext . value ,
231233 }
232234 }
235+ console . log ( '_ciBuildConfig' , _ciBuildConfig )
233236
234237 const requestBody = {
235238 id : ciConfig ?. id ?? null ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import { VitePWA } from 'vite-plugin-pwa'
2929import tsconfigPaths from 'vite-tsconfig-paths'
3030
3131const WRONG_CODE = `import { bpfrpt_proptype_WindowScroller } from "../WindowScroller.js";`
32- const TARGET_URL = 'https://preview .devtron.ai /'
32+ const TARGET_URL = 'https://devtron-ent-7 .devtron.info /'
3333
3434function reactVirtualized ( ) : PluginOption {
3535 return {
You can’t perform that action at this time.
0 commit comments