Use DocumentStore for viewing and editing
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user