Skip to content

Commit

Permalink
fixing issue part2: owncloud#11193
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarifard authored Jul 16, 2024
1 parent 7fa7e40 commit 3b947ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web-client/src/webdav/constants/dav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const def = <V, T>(v: V): M<V, T> => ({
value: v,
type: null
})
const defStringOrNumber = <V>(v: V) => def<V, string|number>(v)
const defString = <V>(v: V) => def<V, string>(v)
const defNumber = <V>(v: V) => def<V, number>(v)
const defStringArray = <V>(v: V) => def<V, string[]>(v)
Expand All @@ -52,7 +53,7 @@ const DavPropertyMapping = {
ContentLength: defNumber('getcontentlength' as const),
ContentSize: defNumber('size' as const),
LastModifiedDate: defString('getlastmodified' as const),
Tags: defString('tags' as const),
Tags: defStringOrNumber('tags' as const),
Audio: {
value: 'audio',
type: null as Audio
Expand Down

0 comments on commit 3b947ca

Please sign in to comment.