Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
πŸ› fix broken image upload button (#766)
Browse files Browse the repository at this point in the history
closes TryGhost/Ghost#8637
- add a default object to `_openImageFileDialog` args so that destructuring with default params works when not passed a value
  • Loading branch information
patrickkim authored and kevinansfield committed Jul 4, 2017
1 parent 9e0eae5 commit bace776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/gh-markdown-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export default Component.extend(ShortcutsMixin, {
delete this._onEditorPaneScroll;
},

_openImageFileDialog({captureSelection = true}) {
_openImageFileDialog({captureSelection = true} = {}) {
if (captureSelection) {
// capture the current selection before it's lost by clicking the
// file input button
Expand Down

0 comments on commit bace776

Please sign in to comment.