Skip to content

Commit

Permalink
wc: use a function to provide extensions data to columns #TASK-5066
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes committed Oct 25, 2023
1 parent b2a37b6 commit 25f310d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webcomponents/commons/grid-commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ export default class GridCommons {
if (!this.context?._config?.skipExtensions) {
const id = componentId || this.context?.COMPONENT_ID;
const isVisible = columnId => this.isColumnVisible(columnId);
return ExtensionsManager.injectColumns(columns, id, isVisible, this.extensionsData);
const getData = () => this.extensionsData || {};
return ExtensionsManager.injectColumns(columns, id, isVisible, getData);
}
// No extensions to inject, just return the original columns list
return columns;
Expand Down

0 comments on commit 25f310d

Please sign in to comment.