From bd1cdb4a9f18549e3e57d509f2795199922f5d3c Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sat, 21 Oct 2017 16:36:55 -0700 Subject: [PATCH] fixed lint --- frontend/stores/DocumentsStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/stores/DocumentsStore.js b/frontend/stores/DocumentsStore.js index 692ce14bb..817b11456 100644 --- a/frontend/stores/DocumentsStore.js +++ b/frontend/stores/DocumentsStore.js @@ -115,7 +115,7 @@ class DocumentsStore extends BaseStore { 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 */ const existingDocument = this.getById(id); if (existingDocument && existingDocument.timeSinceFetch < 5)