mirror of
https://github.com/outline/outline.git
synced 2026-11-28 16:19:46 +03:00
perf: Remove default fetchDocuments call (#10951)
This commit is contained in:
1 parent
93356472a1
commit
85cd2d0c2c
2 files changed
+1
-8
No files matched your search
@@ -182,7 +182,7 @@ const DocumentMeta: React.FC<Props> = ({
|
||||
<span>
|
||||
{t("in")}
|
||||
<Strong>
|
||||
<DocumentBreadcrumb document={document} onlyText />
|
||||
<DocumentBreadcrumb document={document} maxDepth={1} onlyText />
|
||||
</Strong>
|
||||
</span>
|
||||
)}
|
||||
|
||||
@@ -148,13 +148,6 @@ export default class CollectionsStore extends Store<Collection> {
|
||||
return result;
|
||||
}
|
||||
|
||||
@action
|
||||
async fetch(id: string, options?: { force: boolean }): Promise<Collection> {
|
||||
const model = await super.fetch(id, options);
|
||||
await model.fetchDocuments(options);
|
||||
return model;
|
||||
}
|
||||
|
||||
@action
|
||||
fetchNamedPage = async (
|
||||
request = "list",
|
||||
|
||||
Reference in new issue
Block a user