File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
apps/opik-frontend/src/components/pages-shared/experiments Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,10 @@ export const useExperimentsTableConfig = <
101101 defaultValue : { } ,
102102 } ) ;
103103
104- const dynamicColumnsIds = useMemo ( ( ) => {
105- return dynamicScoresColumns . map ( ( c ) => c . id ) ;
106- } , [ dynamicScoresColumns ] ) ;
104+ const dynamicColumnsIds = useMemo (
105+ ( ) => dynamicScoresColumns . map ( ( c ) => c . id ) ,
106+ [ dynamicScoresColumns ] ,
107+ ) ;
107108
108109 useDynamicColumnsCache ( {
109110 dynamicColumnsKey : `${ storageKeyPrefix } -dynamic-columns` ,
@@ -118,7 +119,7 @@ export const useExperimentsTableConfig = <
118119 } , [ ] ) ;
119120
120121 const scoresColumnsData = useMemo ( ( ) => {
121- return dynamicScoresColumns . map (
122+ const scoreColumns = dynamicScoresColumns . map (
122123 ( { label, id, columnType } ) =>
123124 ( {
124125 id,
@@ -141,6 +142,8 @@ export const useExperimentsTableConfig = <
141142 } ,
142143 } ) as ColumnData < T > ,
143144 ) ;
145+
146+ return scoreColumns ;
144147 } , [ dynamicScoresColumns ] ) ;
145148
146149 const selectedRows = useMemo ( ( ) => {
You can’t perform that action at this time.
0 commit comments