Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki committed Oct 11, 2023
1 parent b460b8b commit ebb718c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/grid/src/vaadin-grid-column-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,12 +657,11 @@ export const ColumnBaseMixin = (superClass) =>
{ cell: footerCell, partName: footerPartName },
].forEach(({ cell, partName }) => {
if (cell) {
const currentName = '__currentPartName';
const currentPartNames = cell[currentName] || [];
const currentPartNames = cell.__customParts || [];
cell.part.remove(...currentPartNames);

cell[currentName] = partName ? partName.trim().split(' ') : [];
cell.part.add(...cell[currentName]);
cell.__customParts = partName ? partName.trim().split(' ') : [];
cell.part.add(...cell.__customParts);
}
});
}
Expand Down

0 comments on commit ebb718c

Please sign in to comment.