Shun Miyazawa 1 год назад
Родитель
Сommit
10864527c4
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      apps/app/src/server/util/slack.js

+ 4 - 0
apps/app/src/server/util/slack.js

@@ -25,6 +25,10 @@ const prepareAttachmentTextForCreate = function(page, siteUrl) {
 };
 
 const prepareAttachmentTextForUpdate = function(page, siteUrl, previousRevision) {
+  if (previousRevision == null) {
+    return;
+  }
+
   const diff = require('diff');
   let diffText = '';