dtable-ui-component 6.0.21 → 6.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,13 +27,14 @@ class RowExpandFormatter extends _react.default.Component {
27
27
  const {
28
28
  row,
29
29
  column,
30
+ valueKey,
30
31
  queryCollaborators
31
32
  } = props;
32
33
  if (column.type === _dtableUtils.CellType.CREATOR || column.type === _dtableUtils.CellType.LAST_MODIFIER) {
33
- const email = row[column.name];
34
+ const email = row[column[valueKey]];
34
35
  queryCollaborators && queryCollaborators(email);
35
36
  } else if (column.type === _dtableUtils.CellType.COLLABORATOR) {
36
- const emails = row[column.name];
37
+ const emails = row[column[valueKey]];
37
38
  if (Array.isArray(emails)) {
38
39
  queryCollaborators && queryCollaborators(emails);
39
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.21",
3
+ "version": "6.0.22",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",