-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(files): Use DAV functions from library to fix invalid source links #42338
Conversation
/backport to stable28 |
Let's wait for @skjnldsv approval |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on my local dev env - works now ! Still agree with Louis that we should wait for @skjnldsv approval
owner: getCurrentUser()?.uid || null, | ||
permissions: Permission.READ, | ||
}), | ||
contents: contents.map(resultToNode), | ||
contents: contents.map((r) => davResultToNode(r)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not contents: contents.map(davResultToNode)
?
(not a blocker, simply curious))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameters do not match map
has a signature of element: T, index: number
but davResultToNode
has element: Result, root?: string
as it allows for different root path.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
83e4d57
to
6556465
Compare
/backport 6a67aff to stable28 |
Summary
Refactor the code to use the files library functions instead which will fix invalid source values causing #4233
Checklist