@seafile/comment-editor 0.0.1-alpha.16 → 0.0.1-alpha.17

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.
@@ -95,7 +95,7 @@ const CommentEditor = _ref => {
95
95
  event && event.stopPropagation();
96
96
  const mdString = (0, _slateToMd.default)(editor.children);
97
97
  if (mdString.trim()) {
98
- content ? insertContent(mdString) : updateContent(mdString);
98
+ !content ? insertContent(mdString) : updateContent(mdString);
99
99
  }
100
100
  addParticipants(userInfo.username);
101
101
  editor.children = [(0, _core.generateEmptyElement)(_constants2.PARAGRAPH, {
@@ -119,7 +119,6 @@ const CommentEditor = _ref => {
119
119
  };
120
120
  }, [onSubmitByEnterKey]);
121
121
  const onCancel = (0, _react.useCallback)(event => {
122
- console.log('onCancel');
123
122
  event.stopPropagation();
124
123
  const {
125
124
  type: eventType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.1-alpha.16",
3
+ "version": "0.0.1-alpha.17",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",