@@ -90,11 +90,11 @@ export let ChartElementFC: FC<{chart: Chart, tableRows: any[], boxWidth?: number
9090 assembledChart = ( ( { data, ...o } ) => o ) ( assembledChart ) ;
9191
9292 let getRandom = ( seed : number ) => {
93- var x = Math . sin ( seed ++ ) * 10000 ;
93+ let x = Math . sin ( seed ++ ) * 10000 ;
9494 return x - Math . floor ( x ) ;
9595 }
9696 let getRandomSubarray = ( arr : any [ ] , size : number ) => {
97- var shuffled = arr . slice ( 0 ) , i = arr . length , temp , index ;
97+ let shuffled = arr . slice ( 0 ) , i = arr . length , temp , index ;
9898 while ( i -- ) {
9999 index = Math . floor ( ( i + 1 ) * getRandom ( 233 * i + 888 ) ) ;
100100 temp = shuffled [ index ] ;
@@ -404,7 +404,9 @@ export const EncodingShelfThread: FC<EncodingShelfThreadProps> = function ({ cha
404404 }
405405
406406 //let triggers = currentTable.derive.triggers;
407- let tableList = activeTableThread . map ( ( tableId ) => < div className = "table-list-item" >
407+ let tableList = activeTableThread . map ( ( tableId ) => < div
408+ key = { tableId }
409+ className = "table-list-item" >
408410 < Button variant = "text" sx = { { textTransform : 'none' , padding : 0 , minWidth : 0 } } onClick = { ( ) => { dispatch ( dfActions . setFocusedTable ( tableId ) ) } } >
409411 < Stack direction = "row" sx = { { fontSize : '12px' } } alignItems = "center" gap = { "2px" } >
410412 < TableRowsIcon fontSize = "inherit" />
@@ -416,7 +418,9 @@ export const EncodingShelfThread: FC<EncodingShelfThreadProps> = function ({ cha
416418 </ div > ) ;
417419
418420 let tableCards = activeTableThread . map ( ( tableId ) =>
419- < Card variant = 'outlined' sx = { { padding : '2px 0 2px 0' } } >
421+ < Card
422+ key = { tableId }
423+ variant = 'outlined' sx = { { padding : '2px 0 2px 0' } } >
420424 < Button variant = "text" sx = { { textTransform : 'none' , padding : 0 , marginLeft : 1 , minWidth : 0 } } onClick = { ( ) => { dispatch ( dfActions . setFocusedTable ( tableId ) ) } } >
421425 < Stack direction = "row" sx = { { fontSize : '12px' } } alignItems = "center" gap = { "2px" } >
422426 < TableRowsIcon fontSize = "inherit" />
@@ -439,7 +443,9 @@ export const EncodingShelfThread: FC<EncodingShelfThreadProps> = function ({ cha
439443 let currentActiveFields = new Set ( extractActiveFields ( trigger ) )
440444 let fieldsIdentical = _ . isEqual ( previousActiveFields , currentActiveFields )
441445
442- return < Box sx = { { padding : 0 , display : 'flex' } } >
446+ return < Box
447+ key = { trigger . tableId }
448+ sx = { { padding : 0 , display : 'flex' } } >
443449 { /* <SouthIcon sx={{fontSize: "inherit", margin: 'auto 4px'}} /> */ }
444450 < Box sx = { { minWidth : '1px' , padding : '0px' , width : '17px' , flex : 'none' , display : 'flex' , flexDirection : 'column'
445451 //borderLeft: '1px dashed darkgray',
@@ -501,7 +507,9 @@ export const EncodingShelfThread: FC<EncodingShelfThreadProps> = function ({ cha
501507 let postInstructEndPoint = activeTableThread . findIndex ( s => s == activeThreadChart . tableRef ) ;
502508 postInstruction = < Collapse orientation = "vertical" in = { true } sx = { { width : "100%" } } >
503509 < Box sx = { { padding : '4px 0px' , display : 'flex' , flexDirection : "column" } } >
504- { interleaveArrays ( [ < Box sx = { { width : '17px' , height : '12px' } } >
510+ { interleaveArrays ( [ < Box
511+ key = "post-instruction"
512+ sx = { { width : '17px' , height : '12px' } } >
505513 < Box sx = { { padding :0 , width : '1px' , margin :'auto' , height : '100%' ,
506514 backgroundImage : 'linear-gradient(180deg, darkgray, darkgray 75%, transparent 75%, transparent 100%)' ,
507515 backgroundSize : '1px 6px, 3px 100%' } } > </ Box >
@@ -531,7 +539,9 @@ export const EncodingShelfThread: FC<EncodingShelfThreadProps> = function ({ cha
531539 </Typography>
532540 </Box> */ }
533541 { [
534- < Box sx = { { display : 'flex' } } >
542+ < Box
543+ key = "encoding-shelf"
544+ sx = { { display : 'flex' } } >
535545 { previousInstructions }
536546 </ Box > ,
537547 // <Box sx={{padding: '4px 0px', background: 'aliceblue', margin: 'auto', width: '200px', height: '6px', paddingBottom: 0.5}}></Box>
0 commit comments