Commit 620d2b1 1 parent 954fabe commit 620d2b1 Copy full SHA for 620d2b1
File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ function SelectImproved<T extends string | SelectOptionObject>({
100
100
</ button >
101
101
</ span >
102
102
) ) ,
103
- [ filteredOptions ]
103
+ [ filteredOptions , selectItem ]
104
104
) ;
105
105
106
106
const shouldDisplayNewInputValue =
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ export const LinearMetadataDataviz = <T extends { [key: string]: any }>({
199
199
* => we recompute the additionalData4viz
200
200
*/
201
201
useEffect ( ( ) => {
202
- if ( fullLength > 0 ) {
202
+ if ( fullLength > 0 && additionalData . length > 0 ) {
203
203
const croppedAdditionalData = cropForDatavizViewbox (
204
204
additionalData ,
205
205
viewBox
@@ -452,6 +452,7 @@ export const LinearMetadataDataviz = <T extends { [key: string]: any }>({
452
452
{ additionalData4viz . map ( ( item , index ) => (
453
453
< div
454
454
className = "item"
455
+ key = { `${ item . begin } -${ item . end } -${ item . value } ` }
455
456
style = { {
456
457
width : `${ ( ( item . end - item . begin ) / fullLength ) * 100 } %` ,
457
458
} }
You can’t perform that action at this time.
0 commit comments