aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry/FileEntryName.vue
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-06-13 15:06:12 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-06-24 12:52:11 +0200
commitd4352fe2ffdafca2e662ddc7f9e7ec8b7eb3bb4a (patch)
treed7d9dbd80f07a8aecd2c3e278c563f48d7b89e7d /apps/files/src/components/FileEntry/FileEntryName.vue
parentc76c954f56e085dada9a7e9553408d499993ba79 (diff)
downloadnextcloud-server-d4352fe2ffdafca2e662ddc7f9e7ec8b7eb3bb4a.tar.gz
nextcloud-server-d4352fe2ffdafca2e662ddc7f9e7ec8b7eb3bb4a.zip
fix(files): Properly handle files in failed state
When files are loaded from API the `fileid` might be set to `-1` indicating an error on the API. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/src/components/FileEntry/FileEntryName.vue')
-rw-r--r--apps/files/src/components/FileEntry/FileEntryName.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/src/components/FileEntry/FileEntryName.vue b/apps/files/src/components/FileEntry/FileEntryName.vue
index 5e9036ad63d..4e5a3571e74 100644
--- a/apps/files/src/components/FileEntry/FileEntryName.vue
+++ b/apps/files/src/components/FileEntry/FileEntryName.vue
@@ -126,7 +126,7 @@ export default defineComponent({
},
linkTo() {
- if (this.source.attributes.failed) {
+ if (this.source.status === NodeStatus.FAILED) {
return {
is: 'span',
params: {