From ad3fa28bc7d4225f3f50b177b52eee74e6e57f9f Mon Sep 17 00:00:00 2001 From: LordMathis Date: Tue, 29 Oct 2024 21:38:15 +0100 Subject: [PATCH] Show file list on load --- frontend/src/hooks/useFileList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/hooks/useFileList.js b/frontend/src/hooks/useFileList.js index ef72c47..ec8ea1f 100644 --- a/frontend/src/hooks/useFileList.js +++ b/frontend/src/hooks/useFileList.js @@ -1,4 +1,4 @@ -import { useState, useCallback, useEffect } from 'react'; +import { useState, useCallback } from 'react'; import { fetchFileList } from '../services/api'; import { useWorkspace } from '../contexts/WorkspaceContext'; @@ -20,7 +20,7 @@ export const useFileList = () => { console.error('Failed to load file list:', error); setFiles([]); } - }, [currentWorkspace]); + }, [currentWorkspace, workspaceLoading]); return { files, loadFileList }; };