File tree Expand file tree Collapse file tree
packages/dev-playground/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -250,6 +250,13 @@ module SettingsPanel = {
250250 Signal .set (activeTab , JavaScript )
251251 }
252252 }
253+ let compilerVersionOptions : Signal .t <array <View .node >> = Obj .magic (
254+ Computed .make (() =>
255+ CompilerApi .selectableCompilerVersions (
256+ Signal .get (config ).compilerVersion ,
257+ )-> Array .map (version => <option value = version .id > {View .text (version .label )} </option >)
258+ ),
259+ )
253260
254261 <div
255262 class = {() =>
@@ -268,11 +275,7 @@ module SettingsPanel = {
268275 switchCompiler (nextVersion )
269276 }}
270277 >
271- {View .fragment (
272- CompilerApi .selectableCompilerVersions (
273- Signal .get (config ).compilerVersion ,
274- )-> Array .map (version => <option value = version .id > {View .text (version .label )} </option >),
275- )}
278+ {View .signalFragment (compilerVersionOptions )}
276279 </select >
277280 </section >
278281 <section class = "settings-section" >
You can’t perform that action at this time.
0 commit comments