Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
qtomlinson committed May 24, 2022
1 parent e70684e commit ea7609b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/FileList/FileList.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export default class FileList extends PureComponent {
onChange(`described.facets.${facet}`, newGlobs)
}

onLicenseChange(record, license) {
onLicenseChange = (record, license) => {
const { onChange, component, previewDefinition } = this.props
const attributions = Contribution.getValue(component.item, previewDefinition, `files[${record.id}].attributions`)
onChange(`files[${record.id}]`, license, null, license => ({
Expand Down Expand Up @@ -293,7 +293,7 @@ export default class FileList extends PureComponent {
)
}

renderLicenseCell(record) {
renderLicenseCell = (value, record) => {
const { readOnly, component, previewDefinition } = this.props
const field = `files[${record.id}].license`
const editor = EnhancedLicensePicker
Expand Down Expand Up @@ -390,7 +390,7 @@ export default class FileList extends PureComponent {
// }}
// />
// ),
render: (value, record) => this.renderLicenseCell(record),
render: this.renderLicenseCell,
width: '20%'
},
{
Expand Down

0 comments on commit ea7609b

Please sign in to comment.