File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
frontend/components/Course/InstructorQueuePage Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -172,11 +172,6 @@ const QueueFormFields = ({
172172 }
173173 setInput ( { ...input } ) ;
174174 } ;
175-
176- const handlePinInputChange = ( e , { checked } ) => {
177- input . pinEnabled = checked ;
178- setInput ( { ...input } ) ;
179- } ;
180175 /* PROPS UPDATE */
181176
182177 return (
@@ -246,7 +241,12 @@ const QueueFormFields = ({
246241 id = "pin-toggle"
247242 toggle
248243 disabled = { loading }
249- onChange = { handlePinInputChange }
244+ onClick = { ( ) =>
245+ setInput ( {
246+ ...input ,
247+ pinEnabled : ! input . pinEnabled ,
248+ } )
249+ }
250250 />
251251 </ Form . Field >
252252
@@ -261,9 +261,9 @@ const QueueFormFields = ({
261261 name = "rateLimitEnabled"
262262 id = "rate-limit-toggle"
263263 toggle
264- defaultChecked = { input . rateLimitEnabled }
264+ checked = { input . rateLimitEnabled }
265265 label = "Enable queue rate-limiting"
266- onChange = { ( ) =>
266+ onClick = { ( ) =>
267267 setInput ( {
268268 ...input ,
269269 rateLimitEnabled : ! input . rateLimitEnabled ,
You can’t perform that action at this time.
0 commit comments