File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 111111 } ,
112112
113113 identifyDuplicates : function ( statements ) {
114+ if ( ! Array . isArray ( statements ) ) statements = [ ] ;
115+
114116 const makeStatementHash = ( statement ) => {
115117 return [
116118 statement . sql ,
341343 const $li = $ ( '<li />' ) . addClass ( csscls ( 'table-list-item' ) ) ;
342344 const $muted = $ ( '<span />' ) . addClass ( css ( 'text-muted' ) ) ;
343345
344- let i = 0 ;
345- for ( const value of values ) {
346+ for ( const i in values ) {
347+ const value = values [ i ] ;
346348 if ( showLineNumbers ) {
347349 $ul . append ( $li . clone ( ) . append ( [ $muted . clone ( ) . text ( `${ i } :` ) , ' ' , $ ( '<span/>' ) . text ( value ) ] ) ) ;
348350 } else {
352354 $ul . append ( $li . clone ( ) . text ( value ) ) ;
353355 }
354356 }
355- i ++ ;
356357 }
357358
358359 return this . renderDetail ( caption , icon , $ul ) ;
You can’t perform that action at this time.
0 commit comments