Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Added meta property sendanor/hyperstack#32
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaakko Heusala committed Oct 29, 2023
1 parent cfd8981 commit 8a03aa4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion samples/loading/components/Text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export function createText (
TEXT_COMPONENT_NAME,
[
text
]
],
undefined,
);
}
3 changes: 2 additions & 1 deletion samples/loading/components/TextComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function createTextComponent (
return createHyperComponentDTO(
TEXT_COMPONENT_NAME,
HyperComponent.Article,
[]
[],
undefined,
);
}
3 changes: 2 additions & 1 deletion samples/order/components/Text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export function createText (
TEXT_COMPONENT_NAME,
[
text
]
],
undefined,
);
}
3 changes: 2 additions & 1 deletion samples/order/components/TextComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function createTextComponent (
return createHyperComponentDTO(
TEXT_COMPONENT_NAME,
HyperComponent.Article,
[]
[],
undefined,
);
}
6 changes: 4 additions & 2 deletions utils/components/populateHyperComponentDTO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export function populateHyperComponentDTO (
return createHyperComponentDTO(
extend,
undefined,
componentContent
componentContent,
undefined,
);
}
throw new TypeError( `Could not find component by name ${extend} to extend for ${component.name}` );
Expand All @@ -40,7 +41,8 @@ export function populateHyperComponentDTO (
createHyperComponentDTO(
extendComponent.name,
extendComponent.extend,
mergeHyperComponentContent(extendContent, componentContent)
mergeHyperComponentContent(extendContent, componentContent),
undefined
),
components
);
Expand Down

0 comments on commit 8a03aa4

Please sign in to comment.