Skip to content

Commit

Permalink
toggleToolbarButtonsの引数に型を付与
Browse files Browse the repository at this point in the history
  • Loading branch information
takusea committed Aug 4, 2024
1 parent 9d11c56 commit 814c7fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Dialog/ToolBarCustomDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ window.backend.getDefaultToolbarSetting().then((setting) => {
defaultSetting.push(...setting);
});
const toggleToolbarButtons = (key) => {
const toggleToolbarButtons = (key: ToolbarButtonTagType) => {
if (toolbarButtons.value.includes(key)) {
toolbarButtons.value.splice(toolbarButtons.value.indexOf(key), 1);
} else {
Expand Down

0 comments on commit 814c7fb

Please sign in to comment.