[www] Document stability up

This commit is contained in:
Roman Timashev committed 2017-10-23 02:19:25 +03:00
1 parent 9855c14da0
commit 68739ddbde
1 file changed
+4 -1
+4 -1
View File
@@ -22,7 +22,10 @@ class Document {
this.id = data.id
this.hash = data.hash
this.file = data.file
this.fileInfo = new DocumentFile(data.fileInfo)
// In the future: use fileInfo only
this.fileInfo = data.fileInfo
? new DocumentFile(data.fileInfo)
: new DocumentFile(data.file)
this.type = data.type
this.title = data.title
this.category = data.category