Skip to content

Commit

Permalink
fix block deprecation, typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aledesma-godaddy committed Oct 31, 2023
1 parent 6a489a2 commit c642a36
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-e2e-cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
chrome_e2e_gammut_tests:
chrome_e2e_gamut_tests:
name: >
E2E - ${{
format(
Expand Down
10 changes: 7 additions & 3 deletions src/blocks/pricing-table/pricing-table-item/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ const deprecated = [
{
migrate: ( attributes, innerBlocks ) => {
const { features } = attributes;
const newListItemBlocks = features.map( ( feature ) => {
return createBlock( 'core/list-item', { content: feature?.props?.children[ 0 ] } );
} );

const newListItemBlocks = features.map( ( feature ) =>
createBlock( 'core/list-item',
{ content: feature?.props?.children.map( ( child ) => child ) },
[ ]
)
);

const listBlock = createBlock( 'core/list', {
className: 'wp-block-coblocks-pricing-table-item__features',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}

&__features {
margin: 0 0 30px;
margin: 0;
}
}

Expand Down

0 comments on commit c642a36

Please sign in to comment.