Skip to content

Commit b8a6e49

Browse files
committed
fix shadowed variable
1 parent a7f9be6 commit b8a6e49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ type StyleArgs = {
542542
trimFirst: boolean
543543
}
544544

545-
function applyStyle(button: Element, styles: {}) {
545+
function applyStyle(button: Element, stylesToApply: {}) {
546546
const toolbar = button.closest('markdown-toolbar')
547547
if (!(toolbar instanceof MarkdownToolbarElement)) return
548548

@@ -560,7 +560,7 @@ function applyStyle(button: Element, styles: {}) {
560560
trimFirst: false
561561
}
562562

563-
const style = {...defaults, ...styles}
563+
const style = {...defaults, ...stylesToApply}
564564

565565
const field = toolbar.field
566566
if (field) {

0 commit comments

Comments
 (0)