File tree Expand file tree Collapse file tree
frontend/packages/volto-searchblocks/src/components/SearchBlocks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,7 +164,12 @@ const SearchBlocks = (props) => {
164164 required = { false }
165165 value = { selectedBlockType || '' }
166166 onChange = { ( id , value ) => handleSelect ( value ) }
167- choices = { block_types ?. map ( ( type ) => [ type , type ] ) || [ ] }
167+ choices = {
168+ block_types ?. map ( ( type ) => [
169+ type ,
170+ config . blocks . blocksConfig [ type ] ?. title || type ,
171+ ] ) || [ ]
172+ }
168173 wrapped = { false }
169174 isClearable = { false }
170175 />
@@ -255,7 +260,9 @@ const SearchBlocks = (props) => {
255260 { ...messages . noResults }
256261 values = { { blockType : selectedBlockType } }
257262 /> { ' ' }
258- { selectedBlockType } .
263+ { config . blocks . blocksConfig [ selectedBlockType ] ?. title ||
264+ selectedBlockType }
265+ .
259266 </ p >
260267 ) }
261268 </ div >
You can’t perform that action at this time.
0 commit comments