From 2ce77b943eb3ddb3c28589a418ee6bf4512becbc Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Thu, 21 Mar 2024 14:47:45 -0700 Subject: [PATCH] filter null folders --- server/utils/files/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/files/index.js b/server/utils/files/index.js index 62a0e593..83dd229c 100644 --- a/server/utils/files/index.js +++ b/server/utils/files/index.js @@ -70,7 +70,7 @@ async function viewLocalFiles() { directory.items = [ directory.items.find((folder) => folder.name === "custom-documents"), ...directory.items.filter((folder) => folder.name !== "custom-documents"), - ]; + ].filter((i) => !!i); return directory; }