Browse Source

fix(files): Fix error with numeric filenames

Signed-off-by: Christopher Ng <chrng8@gmail.com>
Christopher Ng 1 month ago
parent
commit
6ed1b98264
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/files/src/components/FileEntryMixin.ts

+ 1 - 1
apps/files/src/components/FileEntryMixin.ts

@@ -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