mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-20 19:04:23 +02:00
optimize detail columns
This commit is contained in:
@@ -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 <> </>;
|
||||
return String(raw);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user