Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Coerce dav tags to string (#11194)
Browse files Browse the repository at this point in the history
* Coerce dav tags to string
AlexAndBear authored and Jannik Stehle committed Jul 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6536125 commit 4cd4fe0
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-ui-breaks-when-tags-are-numbers
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: UI breaks when tags are numbers

We fixed a bug where the UI breaks when tags only consists of numbers

https://github.com/owncloud/web/pull/11194
https://github.com/owncloud/web/issues/11193
2 changes: 1 addition & 1 deletion packages/web-client/src/helpers/resource/functions.ts
Original file line number Diff line number Diff line change
@@ -151,7 +151,7 @@ export function buildResource(resource: WebDavResponseResource): Resource {
id: resource.props[DavProperty.OwnerId],
displayName: resource.props[DavProperty.OwnerDisplayName]
},
tags: (resource.props[DavProperty.Tags] || '').split(',').filter(Boolean),
tags: (resource.props[DavProperty.Tags] || '').toString().split(',').filter(Boolean),
audio: convertObjectToCamelCaseKeys(resource.props[DavProperty.Audio]),
location: convertObjectToCamelCaseKeys(resource.props[DavProperty.Location]),
image: convertObjectToCamelCaseKeys(resource.props[DavProperty.Image]),

0 comments on commit 4cd4fe0

Please sign in to comment.