Skip to content

Commit

Permalink
Fix libraryVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Sep 25, 2023
1 parent 889ed8f commit 54524da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/compiler/CompilerOpts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ export function LibrariesEditor({ libraries, setLibraries }: {
const libraryVersions = scratchlib => {
const lib = supportedLibraries.find(lib => lib.name == scratchlib.name)
if (lib != null) {
return lib.supported_versions
return Object.fromEntries(lib.supported_versions.map(v => [v, v]))
} else {
return [scratchlib.version]
return {[scratchlib.version]: scratchlib.version}
}
}

Expand Down

0 comments on commit 54524da

Please sign in to comment.