Skip to content

Commit

Permalink
fix: undefined bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhiter committed Nov 25, 2024
1 parent e9c5ebb commit 724cd44
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ const DevboxCreatePage = () => {
? languageVersionMap[runtime as LanguageTypeEnum]?.[0]?.id ||
frameworkVersionMap[runtime as FrameworkTypeEnum]?.[0]?.id ||
osVersionMap[runtime as OSTypeEnum]?.[0]?.id
: languageVersionMap[LanguageTypeEnum.go][0].id,
: '',
networks: (
languageVersionMap[runtime as LanguageTypeEnum]?.[0]?.defaultPorts ||
frameworkVersionMap[runtime as FrameworkTypeEnum]?.[0]?.defaultPorts ||
osVersionMap[runtime as OSTypeEnum]?.[0]?.defaultPorts ||
languageVersionMap[LanguageTypeEnum.go][0].defaultPorts
[]
).map((port) => ({
networkName: `${defaultDevboxEditValue.name}-${nanoid()}`,
portName: nanoid(),
Expand Down

0 comments on commit 724cd44

Please sign in to comment.