Skip to content

Commit 952b1a4

Browse files
leftybournesbackportbot[bot]
authored andcommitted
fix(files): remove leading slash from destination in copy/move toast
Signed-off-by: Kent Delante <kent@delante.me>
1 parent 2cb53ed commit 952b1a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files/src/actions/moveOrCopyAction.ts

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

0 commit comments

Comments
 (0)