@@ -217,32 +217,32 @@ export default class BTree extends Algorithm {
217217 }
218218
219219 setURLData ( searchParams ) {
220- if ( searchParams . has ( " promote" ) ) {
221- const selection = searchParams . get ( " promote" ) ;
222- if ( selection === " second" ) {
223- this . split_index = 1
220+ if ( searchParams . has ( ' promote' ) ) {
221+ const selection = searchParams . get ( ' promote' ) ;
222+ if ( selection === ' second' ) {
223+ this . split_index = 1 ;
224224 this . splitSecondSelect . checked = true ;
225225 this . splitThirdSelect . checked = false ;
226- } else if ( selection === " third" ) {
227- this . split_index = 2
226+ } else if ( selection === ' third' ) {
227+ this . split_index = 2 ;
228228 this . splitSecondSelect . checked = false ;
229- this . splitThirdSelect . checked = true
229+ this . splitThirdSelect . checked = true ;
230230 }
231231 }
232232
233- if ( searchParams . has ( " predSucc" ) ) {
234- const selection = searchParams . get ( " predSucc" ) ;
235- if ( selection === " pred" ) {
236- this . predSucc = 'pred'
233+ if ( searchParams . has ( ' predSucc' ) ) {
234+ const selection = searchParams . get ( ' predSucc' ) ;
235+ if ( selection === ' pred' ) {
236+ this . predSucc = 'pred' ;
237237 this . predButton . checked = true ;
238- } else if ( selection === " succ" ) {
239- this . predSucc = 'succ'
238+ } else if ( selection === ' succ' ) {
239+ this . predSucc = 'succ' ;
240240 this . succButton . checked = true ;
241241 }
242242 }
243243
244- if ( searchParams . has ( " data" ) ) {
245- const data = searchParams . get ( " data" ) ;
244+ if ( searchParams . has ( ' data' ) ) {
245+ const data = searchParams . get ( ' data' ) ;
246246 this . buildTreeField . value = data ;
247247 this . buildTreeCallback ( ) ;
248248 }
0 commit comments