tfrere commited on
Commit
f0c3124
Β·
1 Parent(s): 76cb65e

fix column visibility

Browse files
frontend/src/pages/LeaderboardPage/components/Leaderboard/utils/columnUtils.js CHANGED
@@ -808,7 +808,7 @@ export const createColumns = (
808
 
809
  const optionalColumns = [
810
  {
811
- id: "architecture",
812
  header: createHeaderCell("Architecture", COLUMN_TOOLTIPS.ARCHITECTURE),
813
  accessorFn: (row) => row.model.architecture,
814
  cell: ({ row }) => (
@@ -819,7 +819,7 @@ export const createColumns = (
819
  size: TABLE_DEFAULTS.COLUMNS.COLUMN_SIZES["model.architecture"],
820
  },
821
  {
822
- id: "precision",
823
  header: createHeaderCell("Precision", COLUMN_TOOLTIPS.PRECISION),
824
  accessorFn: (row) => row.model.precision,
825
  cell: ({ row }) => (
@@ -841,7 +841,7 @@ export const createColumns = (
841
  }}
842
  >
843
  <Typography variant="body2">
844
- {row.original.metadata.params_billions}
845
  <span style={{ opacity: 0.6 }}>B</span>
846
  </Typography>
847
  </Box>
 
808
 
809
  const optionalColumns = [
810
  {
811
+ accessorKey: "model.architecture",
812
  header: createHeaderCell("Architecture", COLUMN_TOOLTIPS.ARCHITECTURE),
813
  accessorFn: (row) => row.model.architecture,
814
  cell: ({ row }) => (
 
819
  size: TABLE_DEFAULTS.COLUMNS.COLUMN_SIZES["model.architecture"],
820
  },
821
  {
822
+ accessorKey: "model.precision",
823
  header: createHeaderCell("Precision", COLUMN_TOOLTIPS.PRECISION),
824
  accessorFn: (row) => row.model.precision,
825
  cell: ({ row }) => (
 
841
  }}
842
  >
843
  <Typography variant="body2">
844
+ {row.original.metadata.params_billions}
845
  <span style={{ opacity: 0.6 }}>B</span>
846
  </Typography>
847
  </Box>