mirror of
https://github.com/nextcloud/server.git
synced 2026-06-05 23:06:48 -04:00
fix(files_versions): renaming file version when its not a string
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
f65d956a72
commit
ca413ad11f
1 changed files with 2 additions and 1 deletions
|
|
@ -108,7 +108,8 @@ function formatVersion(version: any, fileInfo: any): Version {
|
|||
|
||||
return {
|
||||
fileId: fileInfo.id,
|
||||
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)
|
||||
label: version.props['version-label'] && String(version.props['version-label']),
|
||||
filename: version.filename,
|
||||
basename: moment(mtime).format('LLL'),
|
||||
mime: version.mime,
|
||||
|
|
|
|||
Loading…
Reference in a new issue