This commit is contained in:
Tom Moor
2023-10-25 21:29:42 -04:00
parent 5402731ec3
commit d7dacd0cd3

View File

@@ -714,15 +714,15 @@ export default class DocumentsStore extends Store<Document> {
};
@action
update = async (
async update(
params: Partial<Document>,
options?: Record<string, string | boolean | number | undefined>
): Promise<Document> => {
): Promise<Document> {
const document = await super.update(params, options);
const collection = this.getCollectionForDocument(document);
void collection?.fetchDocuments({ force: true });
return document;
};
}
@action
unpublish = async (document: Document) => {