Skip to content

Commit

Permalink
fix: prevent table breaking on null columnWidths [ET-161] (#9131)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyBonar authored Apr 9, 2024
1 parent ec43809 commit 133f838
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webui/react/src/pages/F_ExpList/F_ExperimentList.settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as t from 'io-ts';
import { INIT_FORMSET } from 'components/FilterForm/components/FilterFormStore';
import { ioRowHeight, ioTableViewMode, RowHeight, TableViewMode } from 'components/OptionsMenu';
import { SettingsConfig } from 'hooks/useSettings';
import { optional } from 'ioTypes';

import { defaultColumnWidths, defaultExperimentColumns } from './expListColumns';

Expand All @@ -28,7 +29,7 @@ export const ProjectSettings = t.intersection([
t.type({}),
t.partial({
columns: t.array(t.string),
columnWidths: t.record(t.string, t.number),
columnWidths: t.record(t.string, optional(t.number)),
compare: t.boolean,
filterset: t.string, // save FilterFormSet as string
heatmapOn: t.boolean,
Expand Down

0 comments on commit 133f838

Please sign in to comment.