Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(systemtag): Ensure that tag names are strings
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Nov 15, 2023
commit 6f6409b413b8a69cdf4d57aa003c85ee2590df04
2 changes: 1 addition & 1 deletion apps/systemtags/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import type { ServerTag, Tag, TagWithId } from './types.js'
export const parseTags = (tags: { props: DAVResultResponseProps }[]): TagWithId[] => {
return tags.map(({ props }) => Object.fromEntries(
Object.entries(props)
.map(([key, value]) => [camelCase(key), value]),
.map(([key, value]) => [camelCase(key), camelCase(key) === 'displayName' ? `${value}` : value]),
)) as TagWithId[]
}

Expand Down