Skip to content

Commit

Permalink
fix: restore columns in exp. multitrial viewer (#5634)
Browse files Browse the repository at this point in the history
  • Loading branch information
mapmeld authored Dec 21, 2022
1 parent 48b6312 commit 27f3db2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions webui/react/src/pages/ExperimentDetails/ExperimentTrials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ import { getMetricValue } from 'utils/metric';
import { openCommandResponse } from 'utils/wait';

import css from './ExperimentTrials.module.scss';
import settingsConfig, { isOfSortKey, Settings } from './ExperimentTrials.settings';
import settingsConfig, {
DEFAULT_COLUMNS,
isOfSortKey,
Settings,
} from './ExperimentTrials.settings';
import { columns as defaultColumns } from './ExperimentTrials.table';
import TrialsComparisonModal from './TrialsComparisonModal';

Expand Down Expand Up @@ -459,7 +463,7 @@ const ExperimentTrials: React.FC<Props> = ({ experiment, pageRef }: Props) => {
preserveSelectedRowKeys: true,
selectedRowKeys: settings.row ?? [],
}}
settings={settings as InteractiveTableSettings}
settings={{ ...settings, columns: DEFAULT_COLUMNS } as InteractiveTableSettings}
showSorterTooltip={false}
size="small"
updateSettings={updateSettings as UpdateSettings}
Expand Down

0 comments on commit 27f3db2

Please sign in to comment.