Skip to content

Commit

Permalink
Merge pull request #45733 from sanskar-soni-9/fix/renaming-file-versi…
Browse files Browse the repository at this point in the history
…on-when-number

fix(files_versions): renaming file version when its not a string
  • Loading branch information
susnux authored Jun 18, 2024
2 parents ee6ddb9 + cd0bd9d commit 3409c21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/files_versions/src/utils/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function formatVersion(version: any, fileInfo: any): Version {

return {
fileId: fileInfo.id,
label: version.props['version-label'],
label: String(version.props['version-label']),
author: version.props['version-author'] ?? null,
filename: version.filename,
basename: moment(mtime).format('LLL'),
Expand Down
4 changes: 2 additions & 2 deletions dist/files_versions-files_versions.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_versions-files_versions.js.map

Large diffs are not rendered by default.

0 comments on commit 3409c21

Please sign in to comment.