dtable-ui-component 0.1.94-test4 → 0.1.94-test5

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.
@@ -31,7 +31,7 @@ var SingleSelectEditor = /*#__PURE__*/function (_React$Component) {
31
31
  var newValue = _this.state.newValue;
32
32
 
33
33
  var option = _this.options.find(function (option) {
34
- return option.id === newValue;
34
+ return option.name === newValue;
35
35
  });
36
36
 
37
37
  return option;
@@ -64,13 +64,13 @@ var SingleSelectEditor = /*#__PURE__*/function (_React$Component) {
64
64
  _this.onCommit = function (newValue) {
65
65
  var updated = {};
66
66
  var column = _this.props.column;
67
- updated[column.key] = newValue;
67
+ updated[column.name] = newValue;
68
68
 
69
69
  _this.props.onCommit(updated);
70
70
  };
71
71
 
72
72
  _this.onOptionItemToggle = function (option) {
73
- var newValue = _this.state.newValue === option.id ? '' : option.id;
73
+ var newValue = _this.state.newValue === option.name ? '' : option.name;
74
74
 
75
75
  _this.setState({
76
76
  newValue: newValue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.1.94-test4",
3
+ "version": "0.1.94-test5",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",