Skip to content

Commit 8afd99c

Browse files
authored
Merge pull request #44562 from nextcloud/fix/files-displayname-string
fix(files): Fix error with numeric filenames
2 parents cc5e54d + b8e9e33 commit 8afd99c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/files/src/components/FileEntryMixin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default defineComponent({
9595
},
9696
displayName() {
9797
const ext = this.extension
98-
const name = (this.source.attributes.displayName
98+
const name = String(this.source.attributes.displayName
9999
|| this.source.basename)
100100

101101
// Strip extension from name if defined

dist/files-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)