diff --git a/docs/voltoaddons/04-block-edit-options.md b/docs/voltoaddons/04-block-edit-options.md index c602acd4c..b736a902b 100644 --- a/docs/voltoaddons/04-block-edit-options.md +++ b/docs/voltoaddons/04-block-edit-options.md @@ -307,9 +307,7 @@ const DataTableView = ({ file_data, data }) => { ); }; -export default withFileData(({ data: { file_path } }) => file_path?.[0])( - DataTableView -); +export default withFileData(DataTableView); ``` Here's how your block would look like: