Skip to content

Commit

Permalink
Adding plugin changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclimbsthings committed May 2, 2023
1 parent 2c17cd2 commit ee08a26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -11,7 +11,7 @@ import { createElement } from '@wordpress/element';
* @param {Array} fills - slot's `Fill`s.
* @return {Node} Node.
*/
export const sortFillsByOrder: Slot.Props[ 'children' ] = ( fills = [] ) => {
export const sortFillsByOrder: Slot.Props[ 'children' ] = ( fills ) => {
// Copy fills array here because its type is readonly array that doesn't have .sort method in Typescript definition.
const sortedFills = [ ...fills ].sort( ( a, b ) => {
return a[ 0 ].props.order - b[ 0 ].props.order;
Expand Down
4 changes: 4 additions & 0 deletions plugins/woocommerce/changelog/fix-tabs-reordering-38002
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Adding order attributes to product tabs template.

0 comments on commit ee08a26

Please sign in to comment.