diff --git a/src/views/products/Detail/ProductQuotationLogPopover.jsx b/src/views/products/Detail/ProductQuotationLogPopover.jsx index 9623655..d5f58cc 100644 --- a/src/views/products/Detail/ProductQuotationLogPopover.jsx +++ b/src/views/products/Detail/ProductQuotationLogPopover.jsx @@ -131,8 +131,15 @@ export const columnsSets = (t, colorize = true) => [ render: (text, { weekdays, audit_state_id, lastedit_changed }) => { const _changed = parseJson(lastedit_changed); const ifCompare = colorize && !statesForHideEdited.includes(audit_state_id); - const ifData = !isEmpty((_changed.weekdayList || []).filter((s) => s)); - const preValue = ifCompare && ifData ?
{_changed.weekdayList}
: null; + const ifData = !isEmpty(_changed.weekdays); + const _weekdays = ifData + ? _changed.weekdays + .split(',') + .filter(Boolean) + .map((w) => t(`common:weekdaysShort.${w}`)) + .join(', ') + : ''; + const preValue = ifCompare && ifData ?
{_weekdays}
: null; const editCls = ifCompare && ifData ? 'text-danger' : ''; return (