Browse Source

docs: Minor fixes to list/detail views docs

Michael Bromley 2 years ago
parent
commit
cd55611936

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

@@ -206,7 +206,7 @@ import { GetReviewDocument, GetReviewDetailQuery } from './generated-types';
             // TypedDocumentNode.  
             return inject(DataService)
               .query(GetReviewDocument, { id: route.paramMap.get('id') })
-              .mapStream(data => ({ entity: of(data.colorChart) }));
+              .mapStream(data => ({ entity: of(data.productReview) }));
           },
         },
         data: {

+ 2 - 2
docs/content/plugins/extending-the-admin-ui/creating-list-views/index.md

@@ -137,7 +137,7 @@ export class ReviewListComponent extends TypedBaseListComponent<typeof GetReview
 }
 ```
 
-## Create the template
+### Create the template
 
 This is the standard layout for any list view. The main functionality is provided by the [DataTable2Component]({{< relref "data-table2component" >}}).
 
@@ -230,6 +230,6 @@ This is the standard layout for any list view. The main functionality is provide
 </vdr-page-body>
 ```
 
-## Route config
+### Route config
 
 For an example of how the route config would look for this list view component, see the full example in the [Creating detail views guide]({{< relref "creating-detail-views" >}}#route-config).