fix: tagcolor value error
This commit is contained in:
parent
be6b949f55
commit
5773f879bf
@ -41,11 +41,10 @@ export const ReadPrettyInternalTag: React.FC = observer(
|
||||
const labelUiSchema = useLabelUiSchema(collectionField, fieldNames?.label || 'label');
|
||||
const { snapshot } = useActionContext();
|
||||
const ellipsisWithTooltipRef = useRef<IEllipsisWithTooltipRef>();
|
||||
const tagColor = flat(recordCtx)[`${fieldSchema.name}.${tagColorField}`];
|
||||
const renderRecords = () =>
|
||||
toArr(props.value).map((record, index, arr) => {
|
||||
const val = toValue(compile(record?.[fieldNames?.label || 'label']), 'N/A');
|
||||
const text = getTabFormatValue(compile(labelUiSchema), val, tagColor);
|
||||
const text = getTabFormatValue(compile(labelUiSchema), val, record[tagColorField]);
|
||||
return (
|
||||
<Fragment key={`${record.id}_${index}`}>
|
||||
<span>
|
||||
|
Loading…
Reference in New Issue
Block a user