Use DocumentStore for viewing and editing

This commit is contained in:
Tom Moor
2017-06-28 21:46:00 -07:00
parent fa902539e6
commit dbb8e3df8e
4 changed files with 182 additions and 294 deletions

View File

@ -81,6 +81,10 @@ class DocumentsStore {
return this.data.get(id);
};
getByUrl = (url: string): ?Document => {
return _.find(this.data.values(), { url });
};
constructor() {
this.errors = stores.errors;
}