mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix(files_sharing): allow strict validation of shares
API response sometimes includes `null` for unset, but unset (`undefined`) is something different than `null`. So if `null` is passed we mean `undefined` instead. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
40db2a4588
commit
b56e0d5ad5
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ async function ocsEntryToNode(ocsEntry: any): Promise<Folder | File | null> {
|
|||
owner: ocsEntry?.uid_owner,
|
||||
mime: ocsEntry?.mimetype || 'application/octet-stream',
|
||||
mtime,
|
||||
size: ocsEntry?.item_size,
|
||||
size: ocsEntry?.item_size ?? undefined,
|
||||
permissions: ocsEntry?.item_permissions || ocsEntry?.permissions,
|
||||
root: getRootPath(),
|
||||
attributes: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue