Skip to content

Commit

Permalink
Merge pull request #3926 from nextcloud/backport/3914/stable29
Browse files Browse the repository at this point in the history
[stable29] Fixes #3902 : allow double click in image picker
  • Loading branch information
elzody authored Aug 19, 2024
2 parents 34bc133 + 154a38d commit ffc31ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/view/FilesAppIntegration.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ export default {
.addButton({
label: t('richdocuments', 'Insert image'),
callback: (files) => {
insertFileFromPath(files[0].path)
if (files && files.length) {
insertFileFromPath(files[0].path)
}
},
})
.build()
Expand Down

0 comments on commit ffc31ed

Please sign in to comment.