optimize detail columns

This commit is contained in:
jeffvli
2026-02-09 01:47:48 -08:00
parent d4c0754bd2
commit 332fc5f9f9
35 changed files with 320 additions and 106 deletions
@@ -1,5 +1,4 @@
import { ItemDetailListCellProps } from './types';
import { TableColumn } from '/@/shared/types/types';
interface DefaultColumnProps extends ItemDetailListCellProps {
columnId: string;
@@ -7,6 +6,6 @@ interface DefaultColumnProps extends ItemDetailListCellProps {
export const DefaultColumn = ({ columnId, song }: DefaultColumnProps) => {
const raw = (song as Record<string, unknown>)[columnId];
if (raw === undefined || raw === null || typeof raw === 'object') return '—';
if (raw === undefined || raw === null || typeof raw === 'object') return <>&nbsp;</>;
return String(raw);
};