Skip to content

Commit 5a7ee67

Browse files
authored
Merge pull request #12 from episerver/user/haed/i-fixed-robbie
Updated rendering to new content model.
2 parents ebf7170 + 545da7a commit 5a7ee67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/base/element/element.graphql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { graphql } from "@generated/graphql/gql";
22

33
export const ElementFragment = graphql(/* GraphQL */ `
4-
fragment ElementNode on CompositionElementNode {
4+
fragment ElementNode on CompositionComponentNode {
55
key
66
type
77
nodeType
@@ -11,7 +11,7 @@ export const ElementFragment = graphql(/* GraphQL */ `
1111
key
1212
value
1313
}
14-
element {
14+
component {
1515
...ButtonFragment
1616
...HeadingFragment
1717
...StatsFragment

src/components/base/element/element.template.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const ElementTemplate: React.FC<ElementTemplateProps> = ({ element }) =>
1818

1919
return (
2020
<ElementComponent
21-
element={element.element}
21+
element={element.component}
2222
elementKey={element.key}
2323
displayTemplateKey={element.displayTemplateKey}
2424
displaySettings={element.displaySettings as CompositionDisplaySetting[]}

0 commit comments

Comments
 (0)