Fix create ordered children helper function (#36831)

* Still pass injectProps into child props for slot fill helper

* Add changelog
This commit is contained in:
louwie17 2023-02-16 10:42:41 -04:00 committed by GitHub
parent 465b3d0dd5
commit f615c58714
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fix issue were Options tab was not showing up anymore in new product management screen.

View File

@ -44,7 +44,7 @@ function getChildrenAndProps< T = Fill.Props, S = Record< string, unknown > >(
}
return {
children: children as React.ReactElement< ChildrenProps >,
props: { order },
props: { order, ...injectProps },
};
}
throw Error( 'Invalid children type' );