Skip to content

Commit

Permalink
Merge pull request nextcloud#44562 from nextcloud/fix/files-displayna…
Browse files Browse the repository at this point in the history
…me-string

fix(files): Fix error with numeric filenames
  • Loading branch information
Pytal authored Mar 28, 2024
2 parents cc5e54d + b8e9e33 commit 8afd99c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/files/src/components/FileEntryMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default defineComponent({
},
displayName() {
const ext = this.extension
const name = (this.source.attributes.displayName
const name = String(this.source.attributes.displayName
|| this.source.basename)

// Strip extension from name if defined
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

0 comments on commit 8afd99c

Please sign in to comment.