Skip to content

Commit

Permalink
The underscore has been added during refactoring, remove it again
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Dec 3, 2024
1 parent c68b964 commit 2bdbe84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ function blockTypeMenuItems(schema, headingLevels) {
},
})

const _levels = headingLevels || [1, 2, 3, 4, 5]
const levels = headingLevels || [1, 2, 3, 4, 5]

return [
..._levels.map(heading),
...levels.map(heading),
{
command: setBlockType(schema.nodes.paragraph),
dom: materialButton("notes", "paragraph"),
Expand Down

0 comments on commit 2bdbe84

Please sign in to comment.