Skip to content

Commit

Permalink
fix: runtimeNamespace bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhiter committed Nov 7, 2024
1 parent 200dfc9 commit 11fad1d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frontend/providers/devbox/app/api/platform/getRuntime/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ export async function GET(req: NextRequest) {
)
const sortedVersions = defaultVersion ? [defaultVersion, ...otherVersions] : versions

sortedVersions.forEach((version: any) => {
runtimeNamespaceMap[version.metadata.name] = item.metadata.namespace
})

languageVersionMap[language] = sortedVersions.map((version: any) => ({
id: version.metadata.name,
label: version.spec.version,
Expand All @@ -110,6 +114,10 @@ export async function GET(req: NextRequest) {
)
const sortedVersions = defaultVersion ? [defaultVersion, ...otherVersions] : versions

sortedVersions.forEach((version: any) => {
runtimeNamespaceMap[version.metadata.name] = item.metadata.namespace
})

frameworkVersionMap[framework] = sortedVersions.map((version: any) => ({
id: version.metadata.name,
label: version.spec.version,
Expand All @@ -135,6 +143,10 @@ export async function GET(req: NextRequest) {
)
const sortedVersions = defaultVersion ? [defaultVersion, ...otherVersions] : versions

sortedVersions.forEach((version: any) => {
runtimeNamespaceMap[version.metadata.name] = item.metadata.namespace
})

osVersionMap[os] = sortedVersions.map((version: any) => ({
id: version.metadata.name,
label: version.spec.version,
Expand Down

0 comments on commit 11fad1d

Please sign in to comment.