Skip to content

Commit

Permalink
chore: updated volto-subblocks for lazyloading libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed May 23, 2022
1 parent c6c0ce3 commit b817efd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@plone/scripts": "^1.0.3",
"file-saver": "^2.0.5",
"react-google-recaptcha-v3": "^1.8.0",
"volto-subblocks": "collective/volto-subblocks#v1.0.1"
"volto-subblocks": "collective/volto-subblocks#v1.2.1"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
Expand Down
4 changes: 2 additions & 2 deletions src/components/EditBlock.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import React from 'react';
import { compose } from 'redux';

import { DNDSubblocks, SubblockEdit, Subblock } from 'volto-subblocks';
import { injectDNDSubblocks, SubblockEdit, Subblock } from 'volto-subblocks';

import Field from 'volto-form-block/components/Field';
import { getFieldName } from './utils';
Expand Down Expand Up @@ -72,4 +72,4 @@ class EditBlock extends SubblockEdit {
}
}

export default React.memo(compose(...DNDSubblocks)(EditBlock));
export default compose(injectDNDSubblocks)(EditBlock);

0 comments on commit b817efd

Please sign in to comment.