File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,9 +102,7 @@ export default function CustomModelBox({
102102 if ( customModelEnabled ) Dispatcher . dispatch ( new DismissLastError ( ) )
103103 Dispatcher . dispatch ( new ClearRoute ( ) )
104104 Dispatcher . dispatch (
105- customModelEnabled
106- ? new DisableCustomModel ( )
107- : new SetCustomModel ( customModelStr , true ) ,
105+ customModelEnabled ? new DisableCustomModel ( ) : new SetCustomModel ( customModelStr , true ) ,
108106 )
109107 } }
110108 >
@@ -122,18 +120,15 @@ export default function CustomModelBox({
122120 </ PlainButton >
123121 ) }
124122 </ div >
125- < div ref = { divElement } className = { styles . customModelBox } />
123+ < div ref = { divElement } className = { styles . customModelBox } />
126124 < div className = { styles . customModelBoxBottomBar } >
127125 < select
128126 className = { styles . examples }
129127 onChange = { ( e : any ) => {
130128 // When selecting an example we request a routing request and act like the model is valid,
131129 // even when it is not according to the editor validation.
132130 Dispatcher . dispatch (
133- new SetCustomModel (
134- customModel2prettyString ( customModelExamples [ e . target . value ] ) ,
135- true ,
136- ) ,
131+ new SetCustomModel ( customModel2prettyString ( customModelExamples [ e . target . value ] ) , true ) ,
137132 )
138133 } }
139134 >
You can’t perform that action at this time.
0 commit comments