Răsfoiți Sursa

allow empty strings

Shun Miyazawa 4 ani în urmă
părinte
comite
2238d93692
1 a modificat fișierele cu 0 adăugiri și 1 ștergeri
  1. 0 1
      packages/app/src/server/models/revision.js

+ 0 - 1
packages/app/src/server/models/revision.js

@@ -16,7 +16,6 @@ module.exports = function(crowi) {
     pageId: { type: ObjectId, required: true, index: true },
     pageId: { type: ObjectId, required: true, index: true },
     body: {
     body: {
       type: String,
       type: String,
-      required: true,
       get: (data) => {
       get: (data) => {
       // replace CR/CRLF to LF above v3.1.5
       // replace CR/CRLF to LF above v3.1.5
       // see https://github.com/weseek/growi/issues/463
       // see https://github.com/weseek/growi/issues/463