We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a73733 commit 3944e18Copy full SHA for 3944e18
apps/files_versions/src/utils/versions.ts
@@ -50,11 +50,11 @@ export async function fetchVersions(fileInfo: any): Promise<Version[]> {
50
.filter(({ mime }) => mime !== '')
51
.map(version => formatVersion(version, fileInfo))
52
53
- const authorIds = new Set(versions.map(version => version.author))
+ const authorIds = new Set(versions.map(version => String(version.author)))
54
const authors = await axios.post(generateUrl('/displaynames'), { users: [...authorIds] })
55
56
for (const version of versions) {
57
- const author = authors.data.users[version.author]
+ const author = authors.data.users[version.author ?? '']
58
if (author) {
59
version.authorName = author
60
}
0 commit comments