From 34bc24151ba2ca46b2b08d9cef8e3c6c866d1c0a Mon Sep 17 00:00:00 2001
From: HampusM <hampus@hampusmat.com>
Date: Fri, 11 Jun 2021 20:06:59 +0200
Subject: Fixed BaseBreadcrumb, RepositoryTree & the log and tree views

---
 packages/client/src/views/RepositoryTree.vue | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

(limited to 'packages/client/src/views/RepositoryTree.vue')

diff --git a/packages/client/src/views/RepositoryTree.vue b/packages/client/src/views/RepositoryTree.vue
index b14c4e4..351591a 100644
--- a/packages/client/src/views/RepositoryTree.vue
+++ b/packages/client/src/views/RepositoryTree.vue
@@ -71,14 +71,13 @@ export default {
 
 			if(tree_data) {
 				if(tree_data.type === "tree") {
-					let tree_trees = Object.entries(tree_data.tree).filter((entry) => entry[1].type === "tree");
-					tree_trees = tree_trees.sort((a, b) => a[0].localeCompare(b[0]));
+					let tree_trees = tree_data.tree.filter((entry) => entry.type === "tree");
+					tree_trees = tree_trees.sort((a, b) => a.name.localeCompare(b.name));
 
-					let tree_blobs = Object.entries(tree_data.tree).filter((entry) => entry[1].type === "blob");
-					tree_blobs = tree_blobs.sort((a, b) => a[0].localeCompare(b[0]));
+					let tree_blobs = tree_data.tree.filter((entry) => entry.type === "blob");
+					tree_blobs = tree_blobs.sort((a, b) => a.name.localeCompare(b.name));
 
-					tree.value = Object.fromEntries(tree_trees.concat(tree_blobs));
-					console.log(tree.value);
+					tree.value = tree_trees.concat(tree_blobs);
 				} else {
 					blob_content.value = tree_data.content;
 				}
-- 
cgit v1.2.3-18-g5258

