Skip to content

Commit 93db4a9

Browse files
committed
minor formatting
1 parent 74215c8 commit 93db4a9

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/sidebar/CustomModelBox.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff 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
>

0 commit comments

Comments
 (0)