import { deepGet } from 'mixlea-utils-js'; import type { MlBaseFormListColumn, MlBaseFormListRow } from '../types'; export function safeGetCellValue(column: MlBaseFormListColumn, record: MlBaseFormListRow, rowIndex: number) { if (column.getValue) { return column.getValue(record, rowIndex); } if (column.field) { return deepGet(record, column.field, undefined); } return ''; }