fix(files): Do not encode the path twice (and do not use undefined method)

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2023-11-07 16:49:10 +01:00
parent b49400cc18
commit e79e0bdf4d
No known key found for this signature in database
GPG key ID: 45FAE7268762B400
5 changed files with 7 additions and 7 deletions

View file

@ -86,7 +86,7 @@ export const handleCopyMoveNodeTo = async (node: Node, destination: Folder, meth
}
const relativePath = join(destination.path, node.basename)
const destinationUrl = generateRemoteUrl(encodePath(`dav/files/${getCurrentUser()?.uid}${relativePath}`))
const destinationUrl = generateRemoteUrl(`dav/files/${getCurrentUser()?.uid}${relativePath}`)
logger.debug(`${method} ${node.basename} to ${destinationUrl}`)
// Set loading state

4
dist/files-init.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long