diff --git a/changelog/unreleased/bugfix-ui-breaks-when-tags-are-numbers b/changelog/unreleased/bugfix-ui-breaks-when-tags-are-numbers new file mode 100644 index 00000000000..5a8d8388a25 --- /dev/null +++ b/changelog/unreleased/bugfix-ui-breaks-when-tags-are-numbers @@ -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 diff --git a/packages/web-client/src/helpers/resource/functions.ts b/packages/web-client/src/helpers/resource/functions.ts index 6d3e2e9840c..3c595f009e2 100644 --- a/packages/web-client/src/helpers/resource/functions.ts +++ b/packages/web-client/src/helpers/resource/functions.ts @@ -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]),