summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/create_comment.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index a0a4ddcd2..e8378da2c 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -123,7 +123,7 @@ export default class CreateComment extends React.Component {
MessageHistoryStore.storeMessageInHistory(message);
- if (message.trim().length === 0 && this.state.previews.length === 0) {
+ if (message.trim().length === 0 && this.state.fileInfos.length === 0) {
return;
}