refactor(TrialBalanceSheet).

This commit is contained in:
a.bouhuolia
2022-02-12 12:53:23 +02:00
parent 526181aa68
commit b9418d3eb6
4 changed files with 78 additions and 45 deletions

View File

@@ -908,7 +908,7 @@ export const tableRowTypesToClassnames = ({ original }) => {
const rowTypes = _.castArray(original.row_types);
const rowId = original.id;
const rowTypesClsx = rowTypes.map((t) => `row_type--${t}`);
const rowTypesClsx = rowTypes.filter((t) => t).map((t) => `row_type--${t}`);
const rowIdClsx = `row-id--${original.id}`;
return clsx(rowTypesClsx, { [`${rowIdClsx}`]: rowId });