Browse Source

docs: Fix ui detail component example

Michael Bromley 2 years ago
parent
commit
32e6e2bbf1

+ 1 - 1
docs/docs/guides/extending-the-admin-ui/creating-detail-views/index.md

@@ -117,7 +117,7 @@ export class ReviewDetailComponent extends TypedBaseDetailComponent<typeof getRe
     update() {
     update() {
         const { title, rating, authorName } = this.detailForm.value;
         const { title, rating, authorName } = this.detailForm.value;
         this.dataService
         this.dataService
-            .mutate(updateOrganizationDocument, {
+            .mutate(updateReviewDocument, {
                 input: { id: this.id, title, rating, authorName },
                 input: { id: this.id, title, rating, authorName },
             })
             })
             .subscribe(() => {
             .subscribe(() => {