Skip to content

Commit

Permalink
columnSettings label display (#5801)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgogh authored Sep 4, 2020
1 parent 3b0bf21 commit 5663c6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class AttributeFilter extends React.PureComponent {
}
handleChange = (e) => {
const value = e.target.value;
this.props.onChange({value, attribute: this.props.column && this.props.column.name});
this.props.onChange({value, attribute: this.props.column && this.props.column.key});
}
}

Expand Down
2 changes: 1 addition & 1 deletion web/client/utils/FeatureGridUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ module.exports = {
sortable,
key: desc.name,
width: columnSettings[desc.name] && columnSettings[desc.name].width || (defaultSize ? defaultSize : undefined),
name: desc.name,
name: columnSettings[desc.name] && columnSettings[desc.name].label || desc.name,
resizable,
editable,
filterable,
Expand Down

0 comments on commit 5663c6e

Please sign in to comment.