Skip to content

Commit e0b5cfa

Browse files
committed
chore: fix for git material id
1 parent 24d2a58 commit e0b5cfa

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/components/ciConfig/CIConfig.utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

src/components/ciConfig/CIConfigForm.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

vite.config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { VitePWA } from 'vite-plugin-pwa'
2929
import tsconfigPaths from 'vite-tsconfig-paths'
3030

3131
const 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

3434
function reactVirtualized(): PluginOption {
3535
return {

0 commit comments

Comments
 (0)