Addressed user feedback

This commit is contained in:
Jori Lallo
2017-09-24 13:51:33 -07:00
parent 3648c11a41
commit a5a1e286d4
5 changed files with 89 additions and 42 deletions

View File

@@ -97,7 +97,7 @@ class Document extends BaseModel {
@computed get parentDocumentId(): ?string {
return this.pathToDocument.length > 1
? this.pathToDocument[this.pathToDocument.length - 1].id
? this.pathToDocument[this.pathToDocument.length - 2].id
: null;
}
@@ -175,7 +175,6 @@ class Document extends BaseModel {
if (this.parentDocument) {
data.parentDocument = this.parentDocument;
}
debugger;
res = await client.post('/documents.create', data);
}
runInAction('Document#save', () => {