Skip to content

Commit

Permalink
Merge pull request #664 from revolist/missing-column-props
Browse files Browse the repository at this point in the history
fix: issue with missing column props
  • Loading branch information
revolist authored Dec 9, 2024
2 parents 55ee688 + da3714f commit 6d16baf
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated 215 files
2 changes: 1 addition & 1 deletion formats/number
Submodule number updated 1 files
+1 −1 package.json
2 changes: 1 addition & 1 deletion packages/angular
2 changes: 1 addition & 1 deletion packages/react
Submodule react updated 2 files
+1 −1 demo/package.json
+2 −2 package.json
2 changes: 1 addition & 1 deletion packages/vue2
Submodule vue2 updated 2 files
+1 −1 demo/package.json
+2 −2 package.json
2 changes: 1 addition & 1 deletion packages/vue3
Submodule vue3 updated 2 files
+2 −2 demo/package.json
+2 −2 package.json
2 changes: 1 addition & 1 deletion src/components/revoGrid/revo-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ export class RevoGridComponent {
}
}

private getPluginData(): PluginProviders | undefined {
getPluginData(): PluginProviders | undefined {
if (!this.dimensionProvider || !this.dataProvider || !this.columnProvider || !this.viewportProvider || !this.selectionStoreConnector) {
return;
}
Expand Down
7 changes: 6 additions & 1 deletion src/utils/column.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,13 @@ export function getColumns(
(res: ColumnCollection, colData: ColumnGrouping | ColumnRegular) => {
// Grouped column
if (isColGrouping(colData)) {
return gatherGroup(
res = gatherGroup(
res,
colData,
getColumns(colData.children, level + 1, types),
level,
);
return res;
}
// Column type
const columnDefinitionFromType = colData.columnType && types?.[colData.columnType];
Expand Down Expand Up @@ -211,6 +212,10 @@ export function gatherGroup<T extends ColumnCollection>(
}
res.maxLevel = Math.max(res.maxLevel, collection.maxLevel);
res.sort = { ...res.sort, ...collection.sort };
res.columnByProp = {
...res.columnByProp,
...collection.columnByProp,
};
return res;
}

Expand Down

0 comments on commit 6d16baf

Please sign in to comment.