Skip to content

Commit

Permalink
πŸ› (#2345): fix wrong condiction
Browse files Browse the repository at this point in the history
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
  • Loading branch information
Vinicius Reis committed May 30, 2022
1 parent c99d4cb commit dd7c8aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/EditorMidiaHandler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ export default {
const alt = name.replaceAll(/[[\]]/g, '')

const chain = position
? this.$editor.chain()
: this.$editor.chain().focus(position)
? this.$editor.chain().focus(position)
: this.$editor.chain()

chain.setImage({ src, alt }).focus().run()
},
Expand Down

0 comments on commit dd7c8aa

Please sign in to comment.