Skip to content

Commit

Permalink
feat (Component Meta Data): adds section to create object
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiepollock committed Jan 16, 2024
1 parent 603886f commit 7994e9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public ComponentMetaData Create(ComponentMetaDataFactoryInput input)
{
Type componentType = input.Component.GetType();
Type genericType = typeof(ComponentMetaData<>).MakeGenericType(componentType);
var instance = Activator.CreateInstance(genericType, new object[] { input.Component, input.Level, input.Index, input.Total, input.Theme, input.Attributes });
var instance = Activator.CreateInstance(genericType, [input.Component, input.Level, input.Index, input.Total, input.Theme, input.Attributes, input.Section]);

if (instance is not ComponentMetaData metaData)
{
Expand Down

0 comments on commit 7994e9a

Please sign in to comment.