Fixes: New document creation

This commit is contained in:
Tom Moor
2019-01-19 18:14:10 -08:00
parent 5525730272
commit 4f4e55d120
4 changed files with 9 additions and 6 deletions

View File

@@ -358,7 +358,7 @@ export default class DocumentsStore extends BaseStore<Document> {
return client.post('/documents.unstar', { id: document.id });
};
getByUrl = (url: string): ?Document => {
getByUrl = (url: string = ''): ?Document => {
return find(Array.from(this.data.values()), doc => url.endsWith(doc.urlId));
};