🐛 fix broken image upload button (#766)

closes https://github.com/TryGhost/Ghost/issues/8637
- add a default object to `_openImageFileDialog` args so that destructuring with default params works when not passed a value
This commit is contained in:
Patrick Kim 2017-07-04 06:11:54 -04:00 committed by Kevin Ansfield
parent 0b238e6463
commit 1d15386960

View File

@ -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