mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
🐛 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:
parent
0b238e6463
commit
1d15386960
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user