From 9df5212a40f5a5011755f987eaf9b63652ef6848 Mon Sep 17 00:00:00 2001
From: John Molakvoæ <skjnldsv@protonmail.com>
Date: Fri, 11 Aug 2023 13:21:29 +0200
Subject: perf(files): reuse vnode with unique key
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
---
 apps/files/src/components/FileEntry.vue | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'apps/files/src/components/FileEntry.vue')

diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue
index c271a6965d7..98b4dfca07c 100644
--- a/apps/files/src/components/FileEntry.vue
+++ b/apps/files/src/components/FileEntry.vue
@@ -21,7 +21,7 @@
   -->
 
 <template>
-	<Fragment>
+	<tr :class="{'list__row--active': active}" class="list__row">
 		<span v-if="source.attributes.failed" class="files-list__row--failed" />
 
 		<td class="files-list__row-checkbox">
@@ -151,7 +151,7 @@
 				:render="column.render"
 				:source="source" />
 		</td>
-	</Fragment>
+	</tr>
 </template>
 
 <script lang='ts'>
@@ -496,6 +496,7 @@ export default Vue.extend({
 		source() {
 			this.resetState()
 			this.debounceIfNotCached()
+			logger.debug('FileEntry source changed', { source: this.source })
 		},
 
 		/**
-- 
cgit v1.2.3

