Skip to content

Commit 16ea198

Browse files
committed
Revision 13: Remove obsolete comments and use cleaner arrow function syntax
1 parent ec61cdb commit 16ea198

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

apps/opik-frontend/src/components/pages-shared/experiments/useExperimentsTableConfig.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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(() => {

0 commit comments

Comments
 (0)