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 ed74404 commit 962c686Copy full SHA for 962c686
apps/files_versions/src/utils/versions.ts
@@ -107,7 +107,8 @@ function formatVersion(version: any, fileInfo: any): Version {
107
108
return {
109
fileId: fileInfo.id,
110
- label: version.props['version-label'],
+ // If version-label is defined make sure it is a string (prevent issue if the label is a number an PHP returns a number then)
111
+ label: version.props['version-label'] && String(version.props['version-label']),
112
author: version.props['version-author'] ?? null,
113
filename: version.filename,
114
basename: moment(mtime).format('LLL'),
0 commit comments