diff --git a/frontend/stores/DocumentsStore.js b/frontend/stores/DocumentsStore.js index 692ce14b..817b1145 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)