Skip to content

Commit

Permalink
fix: GitHub error: Argument of type 'ToolbarSettings | undefined' is …
Browse files Browse the repository at this point in the history
…not assignable to parameter of type 'ToolbarSettings'
  • Loading branch information
chrisgurney committed Dec 19, 2024
1 parent f7d920f commit 4718a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ export default class NoteToolbarPlugin extends Plugin {

}

async setPosition(toolbarSettings: ToolbarSettings, newPosition: PositionType) {
async setPosition(toolbarSettings: ToolbarSettings | undefined, newPosition: PositionType) {
if (toolbarSettings?.position) {
Platform.isDesktop ?
toolbarSettings.position.desktop = { allViews: { position: newPosition } }
Expand Down

0 comments on commit 4718a5d

Please sign in to comment.