File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/react/src/FormattingToolbar/components/DefaultDropdowns Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export const defaultBlockTypeDropdownItems: BlockTypeDropdownItem[] = [
42
42
isSelected : ( block ) =>
43
43
block . type === "heading" &&
44
44
"level" in block . props &&
45
- block . props . level === "1" ,
45
+ block . props . level === 1 ,
46
46
} ,
47
47
{
48
48
name : "Heading 2" ,
@@ -52,7 +52,7 @@ export const defaultBlockTypeDropdownItems: BlockTypeDropdownItem[] = [
52
52
isSelected : ( block ) =>
53
53
block . type === "heading" &&
54
54
"level" in block . props &&
55
- block . props . level === "2" ,
55
+ block . props . level === 2 ,
56
56
} ,
57
57
{
58
58
name : "Heading 3" ,
@@ -62,7 +62,7 @@ export const defaultBlockTypeDropdownItems: BlockTypeDropdownItem[] = [
62
62
isSelected : ( block ) =>
63
63
block . type === "heading" &&
64
64
"level" in block . props &&
65
- block . props . level === "3" ,
65
+ block . props . level === 3 ,
66
66
} ,
67
67
{
68
68
name : "Bullet List" ,
You can’t perform that action at this time.
0 commit comments