@@ -21,6 +21,7 @@ export const BlockNoteSuggestionMenu = () => {
21
21
const editor = useBlockNoteEditor < DocsBlockSchema > ( ) ;
22
22
const { t } = useTranslation ( ) ;
23
23
const basicBlocksName = useDictionary ( ) . slash_menu . page_break . group ;
24
+ const advancedBlocksName = useDictionary ( ) . slash_menu . table . group ;
24
25
25
26
const getSlashMenuItems = useMemo ( ( ) => {
26
27
return async ( query : string ) =>
@@ -30,13 +31,13 @@ export const BlockNoteSuggestionMenu = () => {
30
31
getDefaultReactSlashMenuItems ( editor ) ,
31
32
getPageBreakReactSlashMenuItems ( editor ) ,
32
33
getCalloutReactSlashMenuItems ( editor , t , basicBlocksName ) ,
33
- getDatabaseReactSlashMenuItems ( editor , t , basicBlocksName ) ,
34
+ getDatabaseReactSlashMenuItems ( editor , t , advancedBlocksName ) ,
34
35
getDividerReactSlashMenuItems ( editor , t , basicBlocksName ) ,
35
36
) ,
36
37
query ,
37
38
) ,
38
39
) ;
39
- } , [ basicBlocksName , editor , t ] ) ;
40
+ } , [ basicBlocksName , advancedBlocksName , editor , t ] ) ;
40
41
41
42
return (
42
43
< SuggestionMenuController
0 commit comments