Skip to content

Commit 5118467

Browse files
committed
Implemented PR feedback
1 parent 927bade commit 5118467

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react/src/components/FormattingToolbar/DefaultSelects/BlockTypeSelect.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ export function getDefaultBlockTypeSelectItems<
7272
).forEach((level) => {
7373
items.push({
7474
name: editor.dictionary.slash_menu[
75+
// TODO: This should be cleaned up, heading level 1 has no "_1"
76+
// suffix which makes this more complicated than necessary.
7577
`heading${level === 1 ? "" : "_" + level}` as keyof typeof editor.dictionary.slash_menu
7678
].title,
7779
type: "heading",

0 commit comments

Comments
 (0)