fixed lint

This commit is contained in:
Jori Lallo
2017-10-21 16:36:55 -07:00
parent c4d8c07859
commit bd1cdb4a9f

View File

@ -115,7 +115,7 @@ class DocumentsStore extends BaseStore {
if (!this.getById(id)) this.fetch(id, true); if (!this.getById(id)) this.fetch(id, true);
}; };
@action fetch = async (id: string, prefetch: boolean): Promise<*> => { @action fetch = async (id: string, prefetch?: boolean): Promise<*> => {
/** If document has been fetched under 5s ago, return it */ /** If document has been fetched under 5s ago, return it */
const existingDocument = this.getById(id); const existingDocument = this.getById(id);
if (existingDocument && existingDocument.timeSinceFetch < 5) if (existingDocument && existingDocument.timeSinceFetch < 5)