diff options
Diffstat (limited to 'apps/comments/src/mixins/CommentMixin.js')
-rw-r--r-- | apps/comments/src/mixins/CommentMixin.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/comments/src/mixins/CommentMixin.js b/apps/comments/src/mixins/CommentMixin.js index 03f5db0846f..7b6e7a9b0a0 100644 --- a/apps/comments/src/mixins/CommentMixin.js +++ b/apps/comments/src/mixins/CommentMixin.js @@ -32,8 +32,7 @@ export default { default: null, }, message: { - // GenFileInfo can convert message as numbers if they doesn't contains text - type: [String, Number], + type: String, default: '', }, ressourceId: { @@ -103,6 +102,7 @@ export default { const newComment = await NewComment(this.commentsType, this.ressourceId, message) this.logger.debug('New comment posted', { commentsType: this.commentsType, ressourceId: this.ressourceId, newComment }) this.$emit('new', newComment) + // Clear old content this.$emit('update:message', '') this.localMessage = '' |