Skip to content

Commit cf3e061

Browse files
authored
Merge pull request #63037 from nextcloud/backport/61435/stable32
[stable32] fix(files): remove leading slash from destination in copy/move toast
2 parents 4cc7570 + 8b6de27 commit cf3e061

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

apps/files/src/actions/moveOrCopyAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export async function * handleCopyMoveNodesTo(nodes: INode[], destination: IFold
160160
const actionFinished = createLoadingNotification(
161161
method,
162162
nodes.map((node) => node.displayname),
163-
join(destination.dirname, destination.displayname),
163+
join(destination.dirname, destination.displayname).replace(/^\//, ''),
164164
)
165165
const queue = getQueue()
166166
try {

dist/files-init.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)