diff --git a/changelog/unreleased/bugfix-error-when-pasting-empty-clipboard b/changelog/unreleased/bugfix-error-when-pasting-empty-clipboard new file mode 100644 index 00000000000..3346fdde53e --- /dev/null +++ b/changelog/unreleased/bugfix-error-when-pasting-empty-clipboard @@ -0,0 +1,6 @@ +Bugfix: Prevent error when pasting with empty clipboard + +We've fixed a bug where an error was thrown when pasting with empty clipboard + +https://github.com/owncloud/web/pull/7214 +https://github.com/owncloud/web/issues/7146 diff --git a/packages/web-app-files/src/store/actions.js b/packages/web-app-files/src/store/actions.js index cd5d688217b..cac63c5ec1c 100644 --- a/packages/web-app-files/src/store/actions.js +++ b/packages/web-app-files/src/store/actions.js @@ -77,7 +77,7 @@ export default { upsertResource } ) { - let movedResources + let movedResources = [] if (context.state.clipboardAction === ClipboardActions.Cut) { movedResources = await move( context.state.clipboardResources,