We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6c8b6b commit 5840f2fCopy full SHA for 5840f2f
server/models/project.js
@@ -14,7 +14,7 @@ const fileSchema = new Schema(
14
url: { type: String },
15
children: { type: [String], default: [] },
16
fileType: { type: String, default: 'file' },
17
- isSelectedFile: { type: Boolean, default: false }
+ isSelectedFile: { type: Boolean }
18
},
19
{ timestamps: true }
20
);
@@ -36,7 +36,7 @@ const projectSchema = new Schema(
36
37
user: { type: Schema.Types.ObjectId, ref: 'User' },
38
serveSecure: { type: Boolean, default: false },
39
- files: { type: [fileSchema], default: [] },
+ files: { type: [fileSchema] },
40
_id: { type: String, default: shortid.generate },
41
slug: { type: String }
42
0 commit comments