Skip to content

Commit

Permalink
Prevent building prefixPath on loading
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge authored and backportbot-nextcloud[bot] committed Oct 20, 2022
1 parent da098c1 commit 3a7ff8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/DavClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { generateRemoteUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'

export const rootPath = 'dav'
export const prefixPath = `/files/${getCurrentUser().uid}`
export const prefixPath = `/files/${getCurrentUser()?.uid}`

// force our axios
const patcher = getPatcher()
Expand Down

0 comments on commit 3a7ff8e

Please sign in to comment.