fixes
This commit is contained in:
@@ -116,11 +116,6 @@ class DocumentsStore extends BaseStore {
|
||||
};
|
||||
|
||||
@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)
|
||||
return existingDocument;
|
||||
|
||||
if (!prefetch) this.isFetching = true;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user