diff --git a/optuna_dashboard/ts/components/Artifact/TableArtifactViewer.tsx b/optuna_dashboard/ts/components/Artifact/TableArtifactViewer.tsx index 6fc01f02..a9a2414c 100644 --- a/optuna_dashboard/ts/components/Artifact/TableArtifactViewer.tsx +++ b/optuna_dashboard/ts/components/Artifact/TableArtifactViewer.tsx @@ -55,7 +55,8 @@ export const TableArtifactViewer: React.FC = ( }) const keys = Array.from(unionSet) return keys.map((key) => ({ - header: key, + // ``header`` cannot be a falsy value, so replace key with a string looking like an empty string. + header: key || " ", accessorFn: (info: Data) => typeof info[key] === "object" ? JSON.stringify(info[key]) : info[key], enableSorting: true,